Can you execute this: import maya.api.OpenMaya as om2
selList = om2.MGlobal.getActiveSelectionList() dag = selList.getDagPath(0) matr = dag.inclusiveMatrix() mesh = dag.child(0) meshIntersect = om2.MMeshIntersector() meshIntersect.create(mesh, matr) I get an error, because it won`t accept the "matr" argument Am Donnerstag, 2. August 2018 02:19:20 UTC+2 schrieb Luiz Amaral: > > You should at least pass the identity matrix like this > > meshIntersect.create(mesh, om2.MMatrix.identity) > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/6455b845-aa61-4458-932b-867c1c16c895%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
