e955...@gmail.com
unread,Oct 28, 2015, 6:56:02 PM10/28/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python Programming for Autodesk Maya
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