You can either set the keys manually at creation time (using .setAnimated(),
then .setValueAt() calls), or if you have some predefined animation you need
to apply every time, you might want to just use .fromScript to source the
whole set of animation curves at once.
-Nathan
-----Original Message-----
From: Jep Hill
Sent: Friday, March 11, 2011 9:14 AM
To: [email protected]
Subject: [Nuke-python] How can I generate a node in Python with severalkeyed
values?
For example, I'm looking to create a crop node with crop values that animate
over time so I start with:
c=nuke.nodes.Crop(name=test)
c['box'].setValue([0,0,1920,1080])
But this just gives me a static HD crop -- what's the best way (in Nuke 6.2)
to animate these values at node generation time via python?
Do I need to use nuke.animation? I'm not looking to bake out an expression;
merely set some specific keyframes for the different crop values throughout
the frame-range at the time the node is created.
I'm willing to bet this a no-brainer and and I'm just missing the obvious!
A simple example would be much appreciated.
Cheers,
Jep_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python