Howdy - I’m trying to set up an easy way to set up render defaults in the submit dialog for deadline within Nuke.
What I’d like to do is be able to have seperate menu entries that control different default settings in the resulting deadline dialog.
Like, choosing “Thinkbox/Render Selected” would pop up the box with the render selected nodes only box checked.
“Thinkbox/Render All” would pop up the box with those off. I could also do things like “Render RSMB” and it would render on our group that has the reelsmart motion blur plugin.
that type of thing.
the only way it seems I can currently control dialog defaults is with a sanity check script, which wouldn’t allow me to set up different dialog box configs - it seems it would only let me do 1 global configuration change.
is there any way to pass in settings to the dialog box through a menu command, so I can get this going and save myself some clicks?
thanks!
How much custom scripting were you looking to do here? If you’re comfortable with editing the Nuke script directly, you could add a drop down with different options, and each would set the defaults to the desired values. This way, you can keep everything self-contained, and not worry about passing custom settings from Nuke’s menu script to the submitter.
Cheers,
do you have an example?
my only apprehension is it sounds like it would require more clicks.
trying to knock it down to a single click. at the moment we only need “render selected” or “render all” - seems like 2 menu entries would be ideal.
No, we don’t have an example of this.
Here’s how our current submission script works. In the menu.py file, you point to a local “proxy” script, which then calls the main submission script from \your\repository\submisison\Nuke when it is executed. This proxy script calls the SubmitNukeToDeadline.SubmitToDeadline() function from the main script, and passes the path to the repository as a parameter.
What you could do is add an extra parameter that specifies the submission mode. So you would have 2 local proxy scripts that would pass in different modes (one for “render selected” and one for “render all”). You would then configure your two menu items to point to these proxy scripts. Then, you would just have to edit the main submission script in \your\repository\submisison\Nuke to take that mode parameter in the SubmitToDeadline() function and then set the defaults appropriately.
That should limit the number of clicks necessary to do the submission.
Cheers,
ok, that sounds clear enough. thanks for the hand holding, much appreciated. I’ll give it a try!