Someone can probably give a more correct answer than me, but it seems to me that even when you use the EP curve tool, it still calls the curve command using points and knots. And if you want to run the curve command with edit points, then maybe you can just rebuild it right afterwards?
Something like... ? deg = 3 pointsList = [...] c = cmds.curve(d=deg, n='curve11', ep=pointsList) cmds.rebuildCurve(c, d=deg, s=len(pointsList)-1, kr=2, kcp=True, rpo=True) Justin On Thu, Dec 3, 2015 at 1:56 PM <s...@weacceptyou.com> wrote: > Hi, this is my last question about curve parameterisation so dont worry > > i have this line in python that creates an ep curve: > > cmds.curve(d=3,n='curve11', > ep=[posList[0],posList[1],posList[2],posList[3],posList[4],posList[5]]) > > this creates a curve of 6 edit points of degree 3, which is what i want. > When you right click the curve and go to curve point and then drag between > any of the points, you will get a parameteristion that is the chord length > of the curve, rather than 0 to 1, 1 to 2, 2 to 3 between each edit point. > > in the past i have been using rebuild curve to correct the > parameterisation afterwards, > > but then recently i just created an ep curve by hand in maya manually, and > the parameterisation is uniform 0 to 1, 1 to 2 between points like i wanted > all along. > > i checked the options of the ep curve tool in maya and it had a 'uniform' > knot spacing option checked. however in python cmds there is not a flag for > knot spacing to make the curve uniform. > > Does anyone know how to select this 'uniform' option for the ep curve > command in python? > because this will solve all my problems, > > 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/b98e39f5-d5e2-4e94-80e7-98a8ae747d7f%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/CAPGFgA0KbtOpEkwzdV%3DW4po8bFeUvAU8X9o%2BZMzQV_pfE47SLA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.