Thanks Frank!

nuke.execute(nuke.selectedNode(), int(nuke.root().knob(“first_frame”).value()), 
int(nuke.root().knob(“last_frame”).value()))

That’s the ticket right there.

I appreciate it!

-n

> On Jul 27, 2015, at 2:14 PM, Frank Rueter|OHUfx <[email protected]> wrote:
> 
> try nuke.execute()
> 
> help(nuke.execute)
> # Result:
>       Help on built-in function execute in module _nuke:
> 
> 
> 
> execute(...)
> 
>       execute(nameOrNode, start, end, incr, views, continueOnError =
>       False) -> None.
> 
>       execute(nameOrNode, frameRangeSet, views, continueOnError = False)
>       -> None.
> 
> 
>  Execute
>       the named Write node over the specified frames.
> 
>  There are
>       two variants of this function. The first allows you to specify the
>       frames to write range by giving the start frame number, the end
>       frame number and the frame increment. The second allows you to
>       specify more complicated sets of frames by providing a sequence of
>       FrameRange objects.
> 
>  If Nuke
>       is run with the GUI up, this will pop up a progress meter. If the
>       user hits the cancel button this command will return 'cancelled'
>       error. If Nuke is run from the nuke command line (ie nuke was
>       started with the -t switch) execute() prints a text percentage as
>       it progresses. If the user types ^C it will aborting the execute()
>       and return a 'cancelled' error.
> 
>  @param
>       nameOrNode: A node name or a node object.
>  @param
>       start: Optional start frame. Default is root.first_frame.
>  @param
>       end: Optional end frame. Default is root.last_frame.
>  @param
>       incr: Optional increment. Default is 1.
>  @param
>       views: Optional list of views. Default is None, meaning "all
>       views".
>  @return:
>       None
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On 28/07/15 09:02, Ned Wilson wrote:
>> Hello Nuke Users,
>> 
>> I’m trying to find a way to get a CurveTool node to execute without 
>> prompting the user. I would like to programmatically set the frame range and 
>> have it execute based on what I have defined.
>> 
>> Does anyone know how to do this? Script_Knob.execute() runs fine, but it 
>> prompts the user.
>> 
>> Thanks!
>> 
>> -n
>> 
>> 
>> 
>> _______________________________________________
>> Nuke-users mailing list
>> [email protected] 
>> <mailto:[email protected]>, 
>> http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/>
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users 
>> <http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users>
> --
> <ohufxLogo_50x50.png> <http://www.ohufx.com/> vfx compositing 
> <http://ohufx.com/index.php/vfx-compositing> | workflow customisation and 
> consulting 
> <http://ohufx.com/index.php/vfx-customising>_______________________________________________
> Nuke-users mailing list
> [email protected] 
> <mailto:[email protected]>, http://forums.thefoundry.co.uk/ 
> <http://forums.thefoundry.co.uk/>
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users 
> <http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users>

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

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

Reply via email to