import nuke
node = nuke.selectedNode()
node_attr = node['which']
node_attr.setAnimated(0)
node_an = node['which'].animations()[0]
node_an.setKey(0,1)
node_an.setKey(1,1)
node_an.setKey(10,1)
node_an.setKey(11,0)
node_an.setKey(12,1)

node_an.setKey can be done with a for loop

On Sat, Aug 6, 2011 at 9:02 PM, Daisuke Maki <[email protected]> wrote:

> Hi there.
>
> Say i have a switch node..
> I want to animate the input parameter..
>
> Frame 10 = set input of the switch node to be 1
> Frame 11 = set it 0
> Frame 12 = set it 1
>
>
> How would I do this inn python?
>
> also is there a nuke python command to get frame range set for the project?
>
> Many thanks!
> D
>
> --
> ~ Smile today ~
>
> _______________________________________________
> 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