None Animate ShapeControlPoint :
SCP = ShapeControlPoint() ## get or create ShapeControlPoint
SCP.center.setPosition(CVec2(cpx, cpy))
SCP.rightTangent.setPosition(CVec2(tRx,tRy))
SCP.featherRightTangent.setPosition(CVec2(tRx,tRy))
SCP.leftTangent.setPosition(CVec2(tLx,tLy))
SCP.featherLeftTangent.setPosition(CVec2(tLx,tLy))
SCP.featherCenter.setPosition(CVec2(-cox, coy))
Animate ShapeControlPoint :
SCP = ShapeControlPoint()
SCP.center.addPositionKey(frame, CVec2(cpx, cpy))
SCP.rightTangent.addPositionKey(frame, CVec2(tRx,tRy))
SCP.featherRightTangent.addPositionKey(frame, CVec2(tRx,tRy))
SCP.leftTangent.addPositionKey(frame, CVec2(tLx,tLy))
SCP.featherLeftTangent.addPositionKey(frame, CVec2(tLx,tLy))
SCP.featherCenter.addPositionKey(frame, CVec2(-cox, coy))
Yann
2011/6/16 Glenn Silver|Celluloid VFX <[email protected]>
> On 6/6/2011 6:39 PM, Wouter Klouwen wrote:
>
>> On 06/06/2011 16:28, John Vanderbeck wrote:
>>
>>> So that takes care of issue #1. Issues #2, animation, is still a
>>> problem for me. I presume I need to be using setPositionAnimCurve() or
>>> setPositionKey() instead of setPosition(), however aside from the
>>> function header, there appears to be no docs on those functions and I
>>> haven't figured out how to use them yet.
>>>
>>
>> I'm pretty sure you'd have to call setPositionKey() if there's a key on
>> the given frame, though sometime might correct me on that later.
>>
>> The lack of documentation in this area has been filed as bug 19026.
>>
>
> I am also trying to figure out how to change keyframed positions + feathers
> in a spline, and can't get the setPositionKey() to work. The help says:
>
> setPositionKey(...)
> self.setPositionKey(time, index, value, id, view) -> None
>
> What should the value of id be?
> Can someone provide a simple example of this command to at least get the
> syntax right?
>
>
> Thanks,
>
> Glenn
>
>
>
>
> ______________________________**_________________
> Nuke-python mailing list
> Nuke-python@support.**thefoundry.co.uk<[email protected]>,
> http://forums.thefoundry.co.**uk/ <http://forums.thefoundry.co.uk/>
> http://support.thefoundry.co.**uk/cgi-bin/mailman/listinfo/**nuke-python<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python