thanks alot Anthony. This is great. the points dont move!, however between the first two points on the curve, the parameter 'u[]' value goes from 0 to 1 (which is great), but then the spaces along the curve after that start getting longer. so between edit points 2 and 3 on the curve is u[1] to u[2.4] roughly and then edit points 3 to 4 ranges from u[2.4] to u[4.6].
I'm gonna test a few things out. Thankyou for your help, Sam On Wed, Feb 11, 2015 at 12:22 AM, Anthony Tan <anthony....@greenworm.net> wrote: > Noting of course, in practice you probably want to *not* keep the > construction history so you can blow away the duplicate curve etc etc. If > you wanted to keep history etc, you may want to instead create the > rebuildCurve node directly and plug the curveShape into both the inputCurve > and matchCurve slots - i don't *think* that'd set up a DAG loop.. > > On Wed, Feb 11, 2015, at 11:12 AM, Anthony Tan wrote: > > It's a hack, but you probably want to duplicate the curve and tell it to > match knots. I know, i know.. > > c1 = mc.curve(d=3, ep=[(0,0,0), (1,0,0), (2,1,0), (3,-1,0), > (4,1,0),(5,-1,0),(6,0,0)]) # base curve > c2 = mc.duplicate() > > mc.select ([c1] + c2) # ignore the voodoo, duplicate returns a list, > while mc.curve doesn't. > > mc.rebuildCurve(rebuildType=2, keepControlPoints=True, degree=3, > keepRange=0, replaceOriginal = False, constructionHistory = False) # rebuild. > > > > > > > > On Wed, Feb 11, 2015, at 07:10 AM, sam williams wrote: > > Hey Justin, > > i tried your suggestion, but it doesn't seem to work. The original edit > points shift out of place. I've been trying alot of different flag options > to see if i can fix this, but nothing seems to work. Im a bit lost ha. > > > > > > On Tue, Feb 10, 2015 at 1:04 AM, Justin Israel <justinisr...@gmail.com> > wrote: > > Maybe something like this is what you want? > > cmds.rebuildCurve(kr=0, kcp=True, s=0, d=3) > > > > On Tue Feb 10 2015 at 13:27:13 <e9554...@gmail.com> wrote: > > > ha yep, i literally just figured this out ha. thankyou very much. > > Incidentally i dont suppose you know how to change the parameterisation of > a curve. i need it to be going from 0 to 1 between each of these edit > points. So i can add more points at specific positions in between with the > insert knot curve command. > > The only problem is when i try and fix the parameterisation with: > > cmds.rebuildCurve('curve1',kcp=True) > > The points of the curve in world space change slightly. I need them to > remain exactly where they are, but i need the parameter values to change. > do you know how this can be done? > > thankyou very much for your time, > 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/f80f3364-f21f-4af8-80e4- > 6b7cc5de6959%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Python Programming for Autodesk Maya" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/python_inside_maya/X2JdYV_4p1Q/unsubscribe > . > To unsubscribe from this group and all its topics, 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/CAPGFgA39-VoouTcjopRK2fOPmNTQrDENvj-dnv9Baa%2Bwv3detg%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA39-VoouTcjopRK2fOPmNTQrDENvj-dnv9Baa%2Bwv3detg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > 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/CAOUxB21G7ATXyOOjbk%3Djxx6OwHXfto3NV23c9T4UiqfDnUjnKA%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAOUxB21G7ATXyOOjbk%3Djxx6OwHXfto3NV23c9T4UiqfDnUjnKA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > 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/1423613537.3623545.225895665.16CCF76B%40webmail.messagingengine.com > <https://groups.google.com/d/msgid/python_inside_maya/1423613537.3623545.225895665.16CCF76B%40webmail.messagingengine.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Python Programming for Autodesk Maya" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/python_inside_maya/X2JdYV_4p1Q/unsubscribe > . > To unsubscribe from this group and all its topics, 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/1423614172.3625313.225897785.3E3373E2%40webmail.messagingengine.com > <https://groups.google.com/d/msgid/python_inside_maya/1423614172.3625313.225897785.3E3373E2%40webmail.messagingengine.com?utm_medium=email&utm_source=footer> > . > > 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/CAOUxB236zS3TuaGzuLV9w2p%3D9P7mTL6QkLYbdembpy8yhq4TRw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.