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[1].
>>>>
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[2].
>>>
>>> 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[3].
>> 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[4].
>
For more options, visit https://groups.google.com/d/optout.



Links:

  1. mailto:python_inside_maya%2bunsubscr...@googlegroups.com
  2. 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA39-VoouTcjopRK2fOPmNTQrDENvj-dnv9Baa%2Bwv3detg%40mail.gmail.com?utm_medium=email&utm_source=footer
  3. 
https://groups.google.com/d/msgid/python_inside_maya/CAOUxB21G7ATXyOOjbk%3Djxx6OwHXfto3NV23c9T4UiqfDnUjnKA%40mail.gmail.com?utm_medium=email&utm_source=footer
  4. 
https://groups.google.com/d/msgid/python_inside_maya/1423613537.3623545.225895665.16CCF76B%40webmail.messagingengine.com?utm_medium=email&utm_source=footer

-- 
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/1423614172.3625313.225897785.3E3373E2%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to