It's indeed nice to know nuke can do it, but I wonder when I'll need to automate autoCrop further. Matthew, could you give me clue? Many renderers nowadays supports autocrop on the rgba out of the box, and I think some render managers does too?
Cheers, Elias Ericsson Rydberg 18 jul 2013 kl. 23:51 skrev Frank Rueter <fr...@beingfrank.info>: > you can use nuke.execute() for that: > > 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 18/07/13 21:35, Matthew Doll wrote: >> I want to run an AutoCrop on the CurveTool via python. I can do this with >> node['go'].execute(), but this pops up a dialog... Is there a way to have it >> automatically run with first/last frame for range? >> >> Apologies if this has come up before but I couldn't locate it. >> >> Cheers, >> Matt >> >> >> _______________________________________________ >> Nuke-python mailing list >> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > _______________________________________________ > Nuke-python mailing list > Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python