Awesome. Glad it does what you needed. The Maya API is just very C++ - like. So you are using it fine. It definitely has a lot deeper functionality, so the docs are more intense. The commands module is more like a super simple collection of high level functions that work with strings.
On Sat, 5 Dec 2015 9:37 AM <s...@weacceptyou.com> wrote: > 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 python_inside_maya+unsubscr...@googlegroups.com. > 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. > -- 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_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3q4Axh%3DKHgB9jfN%2BDt48x3gRYiSesa8gyUFo8fWkWMwQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.