MFnMesh.getVertexNormal based on specific direction?

14 views
Skip to first unread message

João Victor

unread,
Mar 30, 2021, 9:43:02 AMMar 30
to Python Programming for Autodesk Maya

Hi guys!

Could someone help me in a doubt?

There is some way to use OpenMaya.MFnMesh.getVertexNormal(), but instead of using the default kWorld or kObject MSpace flags, I would like to use an specific direction.

I mean: I don´t want to get the normals based on the world, I want to get the normals based in a specific direction, like the world would be in another direction.

 

Is it possible?

 

Thanks a lot!

Chris Granados

unread,
Mar 30, 2021, 9:53:19 AMMar 30
to Python Programming for Autodesk Maya
You could multiply your normal by a matrix representing your desired coordinate space orientation.

João Victor

unread,
Mar 30, 2021, 12:22:30 PMMar 30
to python_in...@googlegroups.com
Thank you very much, Chris!
I am gonna try to do that!

cheers!

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0d4f8a1a-9bcb-4cf3-a9a4-055cf0d17884n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages