Remembering previous job submission settings.

When submitting a Modo job, Deadline seems to remember the settings from the last submission. This is actually becoming a problem with my team because we sometimes switch back and forth between using the output path from Modo’s scene file and Deadline’s optional Output Folder path. What is happening is that Deadline will remember the file path in the optional Output Folder dialog and thus will default to that path rather than using the one from Modo.

So I’d like to clear all unused entries on every job submission. But I can’t figure out where and how it is saving the previous jobs info.

Bumping, hoping to catch one of the devs attention.

It’s definitely pretty easy to miss/find if you don’t know what you’re looking for, but it’s basically just a couple lines that control which settings are sticky.

Specifically for Modo, you’ll want to look for these lines in ‘scripts/Submission/ModoSubmission.py’:

#Application Box must be listed before version box or else the application changed event will change the version settings = ("DepartmentBox","CategoryBox","PoolBox","GroupBox","PriorityBox","MachineLimitBox","IsBlacklistBox","MachineListBox","LimitGroupBox","SceneBox","SubmitSceneBox","FramesBox","ChunkSizeBox","PassBox","OutputBox","TileFrameBox","TilesInXBox","TilesInYBox","TileDependentBox","TileCleanUpBox","UseDraftCheck", "ErrorOnMissingBox", "VersionBox","BuildBox","PrefixBox","ThreadsBox", "DraftTemplateBox", "DraftUserBox", "DraftEntityBox", "DraftVersionBox") scriptDialog.LoadSettings( GetSettingsFilename(), settings )

The ‘settings’ tuple is basically just a list of all the control names whose values will be saved/loaded. If you don’t want the output location sticky, you’ll need to remove the “OutputBox” entry:

settings = ("DepartmentBox","CategoryBox","PoolBox","GroupBox","PriorityBox","MachineLimitBox","IsBlacklistBox","MachineListBox","LimitGroupBox","SceneBox","SubmitSceneBox","FramesBox","ChunkSizeBox","PassBox","OutputBox","TileFrameBox","TilesInXBox","TilesInYBox","TileDependentBox","TileCleanUpBox","UseDraftCheck", "ErrorOnMissingBox", "VersionBox","BuildBox","PrefixBox","ThreadsBox", "DraftTemplateBox", "DraftUserBox", "DraftEntityBox", "DraftVersionBox")

Hope this helps!

  • Jon

Awesome thanks! Yes If those were snakes they would have bitten me. lol

Ok, now that I looked at that closer I see what is going on. I didn’t realize that’s what the “settings” variable was holding. That’s definitely good to know.