Cant you just set this with the curve editor without changing frame?
Cheers
Howard
________________________________
From: Jed Smith <[email protected]>
To: [email protected]
Sent: Thursday, 23 May 2013, 4:49
Subject: [Nuke-python] Re: access active knob field with Python
Quote:
Example :
CC node, i want to set Gain on frame 3 to value 2.5 but to this frame only, so
on frame 2 and frame 4 i have to set gain to value 0.
When i am working on heavy script this simple operation is pretty annoying just
because i need to move from frame to frame to set zero values and it is slow
(even i i am pausing the viewer)
A much simpler way to do what you are asking is to just use a TCL conditional
referencing the frame number on the knob, like this:
Code:
x == 3 ? 2.5 : 0
In English, this would mean: "If frame is equal to 3, then set value to 2.5,
else set value to 0." In Nuke TCL, x is the same as frame.
Hope this helps!
-Jed
_______________________________________________
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