Adding defaults to DeadlineModoClient.pl

I am trying to modify the DeadlineModoClient.pl script to always set the Pass Group to ‘Passes_01’. I tried adding the following lines:

my $pgroup = "Passes_01"; lxout( "passGroup: $pgroup" );
I’m just guessing what the name of the key is as I can’t seem to find any info on it.

Am I thinking in the right direction? Any help would appreciated as I’m not a hardcore coder.

Hello,

I am going to need to check with the devs to see how to make this work right for you.

Thanks. The script works fine as it is, but it’s really about convenience and reducing the potential for mistakes.

Hello,
Can you confirm what version of Deadline you run, just so we know what version to be checking on this for? Thanks.

Currently running version 6.0.0.51561

Hello,

Ok, so I worked out how to get this done. Instead of the file you want, what you need to edit is the file [repo]\scripts\Submission\ModoSubmission.py and look for a line that starts with “passGroup”, which would look something like [passGroup = scriptDialog.GetValue( “PassBox” )] and replace it with [passGroup = “Passes_01”]

Hope that helps.

Double post

You can also make the Groups Box remember it’s last settings by adding it to the “settings” list. Mine has been modified but you can search for this:

#Application Box must be listed before version box or else the application changed event will change the version
settings = (“PoolBox”,“GroupBox”,“PriorityBox”,“SubmitSceneBox”,“VersionBox”,“BuildBox”,“PrefixBox”,“ThreadsBox”, “DraftTemplateBox”, “DraftUserBox”, “DraftEntityBox”, “DraftVersionBox”, “PassBox”)
scriptDialog.LoadSettings( GetSettingsFilename(), settings )

Also, if you’re interested, I’ve rewritten the DeadlineModoClient script in Python. I found that it was easier to hack in one language rather than jumping back and forth between Perl and Python. This was originally part of a Render class I made so I’m not sure if it will work right out of the box. You may need to tweak it to work for you.

James
DeadlineModoClient.rar (1.27 KB)

Thanks, I’ll have a look at that as soon as I get the chance.

Thanks, I’ll try that.

I may have a look at your Python version. See if I can get my head around it all.