thanks Justin,
here is an example of the code i have:
def returnCollisionPoints(point=(point), dir=(-newX,-newY, -newZ)):
sel = om.MSelectionList()
dag = om.MDagPath()
sel.add("pSphereShape1")
sel.getDagPath(0,dag)
mesh = om.MFnMesh(dag)
point = om.MFloatPoint(*point)
dir = om.MFloatVector(*dir)
hitPoints = om.MFloatPointArray()
mesh.allIntersections(
point, dir,
None, None,
False, om.MSpace.kWorld,
10000, False,
None,
None,
hitPoints,
None, None,
None, None,
None
)
return hitPoints
i will read up on those docs, thanks for helping. Im not even sure why the
mesh.allIntersections needs to be written like that or if theres a cleaner way
--
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/d25325de-7d2f-4ef3-8904-cbbee2f27af8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.