boom, thats it! finally there is a solution. thanks a super lot Justin
i am still a bit fearful if api, the guide blows my mind, but i guess there
will always be an api way of doing things and will always be fast than python.
i was unsure how to add all the points i wanted in one go but i appended that
list like this:
#########
import maya.OpenMaya as om
positions=[(1,2,3),(0,2,3),(2,3,4),(5,2,4)]
curveFn = om.MFnNurbsCurve()
arr = om.MPointArray()
for pos in positions:
arr.append(*pos)
obj = curveFn.createWithEditPoints(
arr,
3,
om.MFnNurbsCurve.kOpen,
False,
False,
True
)
########
i guess i can shove this in a function and call it with the points i need every
time;) - its good because for ages i have been creating ep curves, storing
point positions ,rebuilding , then moving points back into stored positions to
get the uniform spans. geez this is alot tighter
thanks alot!
Sam
--
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/575ee7d4-8605-48e3-bd6c-51c367fc969d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.