Hi Nathan ,

Thanks for tips and do you have any suggestion to create a anim curve only
in tx ? instead of using index ?

Thanks

Kurian

On Wed, Jul 6, 2011 at 3:01 AM, Nathan Rusch <[email protected]>wrote:

>   Creating an animation curve with a reference to a knob doesn’t actually
> attach the curve to the knob. My guess is the knob reference is used for
> memory allocation at the C++ level (making sure it grabs enough to fit the
> array size) and/or maybe some kind of type validation.
>
> The only thing you need to add to get it working is to actually attach the
> curve to your knob using .copyAnimation:
>
> n[‘translate’].copyAnimation(0, a)
>
>
> -Nathan
>
>
>  *From:* Kurian O.S <[email protected]>
> *Sent:* Monday, July 04, 2011 11:24 PM
> *To:* [email protected]
> *Subject:* [Nuke-python] Reg : Setting Anim Curve for a Node
>
> Hi All ,
>
> I am very new to this group and I have a question about setting keyframes .
>
> eg :
>
> I have a camera1 node in scene and I want to set key frames for
> camera1.translateX .
>
> for that first I got the node with
>
> n = nuke.selectedNode()
>
>
>
> then
>
> n['translate'].setAnimated(0)
>
>
> and I am trying to set with
> a = nuke.AnimationCurve(n['translate'], 0, 'x')
> a.setKey(10, .125)
>
> But nothing showing in graph editor , I am sorry for asking this basic
> question , any one know what I doing stupid ?
>
> Thanks
>
> --
> --:: Kurian ::--
>
>
>
>  ------------------------------
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> 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
>
>


-- 
--:: Kurian ::--
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to