I’d really love to make ‘Only Selected Write Nodes’ the default option for submitting Nuke scripts, but there is no field for it on the Deadline tab of the root node. I took a look through the source and see that it looks like we can add defaults to an ini file in the repository, but that also does not accept a value for this setting.
I guess it falls upon me to edit the source code to add it, but do I have to keep adding it back in every time Deadline gets an update, or is there some way I can fix this permanently?
You can achieve this by writing a “custom sanity check” script for the Nuke submitter: Nuke — Deadline 10.3.0.10 documentation in that way you will not need to change the submitter code itself.
The sanity check script will go away during the upgrade if it is present in the default folder. To avoid that, the best practice is to create a copy of Nuke Submission in the custom folder. [Repo]/custom/submission/Nuke/.
custom folder does not get overridden during the upgrade.
1-I placed a file called CustomSanityChecks.py.py in C:\DeadlineRepository10\submission\Nuke\Main
2- I wrote this code in it
import nuke
import DeadlineGlobals
def RunSanityCheck():
DeadlineGlobals.initDepartment = “The Best Department!”
DeadlineGlobals.initPriority = 51
DeadlineGlobals.initConcurrentTasks = 2
DeadlineGlobals.initSelectedOnly = True
nuke.message(“This is a custom sanity check!”)
return True
But it doesn’t seems to make the Selected nodes only checkbox active in the Submitter dialog
what I want to achieve is to remove the message box before the Submitter dialog box apear as well as the confirmation message after I click submit ,only want to keep the Successful submission message .