Thanks fellas, that should work perfectly. Regarding details... I have a massive digimatte for which there is need for only a portion on a per shot basis. I'm creating a tool to bake out the frustrum view in uv space over the frange and then autocropping to the max dimensions needed for the digimatte. This will help improve work speed by orders of magnitude.
On Friday, July 19, 2013, Elias Ericsson Rydberg wrote: > 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<javascript:_e({}, 'cvml', '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 listnuke-pyt...@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/> > >
_______________________________________________ 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