startFrame = 1
endFrame = 100
frameIncr = 1
for node in allMyCurveTools:
   nuke.execute(node, startFrame, endFrame, frameIncr)

You can also pass it a sequence of FrameRange objects if you need to get funky with the frame ranges.

-Nathan

-----Original Message----- From: Jacob Harris
Sent: Friday, March 04, 2011 9:36 AM
To: Nuke Python discussion
Subject: [Nuke-python] Can I 'catch' a popup window?

Is it possible to "catch" a popup window and enter a value without
showing the popup? For example, if I want to loop through multiple
CurveTool runs, knob.execute() pops up the frame range window every
time. I'm hoping to define a single frame range once and never see
that window again.
_______________________________________________
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

Reply via email to