Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I need to convert an OpenMaya result into usable point data for python (pymel) usage.
from this function:
hit = fnMesh.allIntersections(raySource, rayDir, faceIDs, triIDs, IDsSorted,
worldSpace, maxParam, testBothDirections,
accelParams, sortHits, hitPoints,
hitRayParams, hitFaces, hitTris, hitBarys1,
hitBarys2, tolerance)
print(hitPoints)
>> [<maya.OpenMaya.MFloatPointArray; proxy of <Swig Object of type 'MFloatPointArray *' at 0x000001ACCFFE0750>
This is useless. I need points:
points = [(p0[0], p0[1],p0[2]), (p1[0], p1[1],p1[2])...]
How do i get points from the MFloatPointArray?
Thanks.
Solved! Go to Solution.