there is a detailed description of the ins and outs of NURBS curves at the top of this page I think is pretty useful. it was for me anyway. http://download.autodesk.com/us/maya/2011help/API/class_m_fn_nurbs_curve.html
I was having similar issues with a controller recorder/recreator script I was working on. do you have some code you want to post? On Wed, Oct 28, 2015 at 3:55 PM, <e9554...@gmail.com> wrote: > Hello friends, > > i think i posted something similar to this a year ago but no answers. > Basically i have a script which generates a curve using 'cmds.curve()' > command with 'ep' for edit point flag. (this curve will be curved not > straight). > > Then the second part of the code involves adding two more points, each one > evenly between these 3 initial points using the 'insertKnotCurve' command. > > However in order to place these two additional points evenly between the > first points, the curve first needs to be rebuilt with > 'cmds.rebuildCurve()' so the parameterisation of the curve is even between > each point. so then i know to insert a knot at 'u[0.5]' and u'[1.5]' and it > will be placed evenly. > > if the curve is rebuilt however , any point between the first and last > move position slightly (for some bizarre reason) which means those points > that move need to be moved back before the knew points can be inserted and > finally the job is done. > ########### > > this may not be clear, but basically if anyone can tell me how to rebuild > a curve without the central points changing position...or maybe a way to > create uniforms parameterisation with the cmds.curve command. i would love > love love to know, because the workaround to fix this issue is ridiculous. > > > thanks, > 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/049ebeba-f36c-49e6-8ff6-9d0acd33086b%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/CABPXW4h-1XMX9BWsKZxxzkQGTayBR3KvPg_NzndTusHW6zPPtA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.