Maya Submission - Can Job Name be automatic?

Hey there,

Every time we submit renders using the integrated Maya Submitter, we have to click the little arrow next to the Job Name box, so that the text box is populated by the current scene name.

The thing is, we always want our renders to be named after our scene name, so how make this automatically happen, so we don’t have to keep clicking the little arrow?

Eg.

Thanks,
Shaun.

Good question! Inside the submitter code at “[repo]/submission/Maya/Main/SubmitMayaToDeadline.mel” we have a function call named “SetJobName()”. Calling that would the equivalent to clicking the button.

Update: You’ll want to put the call to SetJobName() into the function named SubmitJobToDeadline(). In particular, that’s at the end of the file mentioned so you’d want to change this:

	scriptJob -uiDeleted $DeadlineSubmitterWindow OnExit;
	scriptJob -e "quitApplication" OnExit;
	// Show the submission dialog window.
	showWindow DeadlineSubmitWindow;

to

        SetJobName;
	scriptJob -uiDeleted $DeadlineSubmitterWindow OnExit;
	scriptJob -e "quitApplication" OnExit;
	// Show the submission dialog window.
	showWindow DeadlineSubmitWindow;
1 Like

Thank you Edwin, that works! Awesome.

Hazaa! Glad to help.

Hey Edwin. I just updated to 10.1.17.4 and I noticed that this still hasn’t been implemented in the official plugin file: SubmitMayaToDeadline.mel

Can you please put this fix in the main release because I have to remember to edit this file myself every time I update Deadline in our office, which I’m sure you’ll understand is a little annoying.

Would be great if the source file was fixed to include SetJobName; , just like you have mentioned above.

Thanks,
Shaun.

Hey @this.is.shaun,

Instead of modifying the SubmitMayaToDeadline.mel script, create a CustomSanityCheck script to update the deadline jobname.

To keep the jobname field matching the maya filename, your CustomSanityCheck.mel file might look something like this…

$jobName = GetStrippedSceneFileName();
setAttr defaultRenderGlobals.deadlineJobName -type "string" $jobName;

Hope this helps!

Hey,

Thanks I tested this sanitycheck file. It works. It has the same effect as: SetJobName; in the main mel file.

Although nice that this is another interesting alternative it still means I need to manually add this file when I update Deadline (as I had to move the whole submitter to the custom folder, so it doesn’t get removed when I update the repo). I’m trying to get around having to manually do a fix for something that I think should be always “on” by default…

It it possible to submit a feature request for SetJobName; to just bee added to the end of the main .mel plugin?

I don’t see why it’s not there already… Why would you not want your render to have the same name as your scene file… The render name on the farm should always match the scene file name for clarity.

If it doesn’t then we have v5 files rendering under the name v4… for example…

Privacy | Site terms | Cookie preferences