Stupid-proofing

Deadline will be used in a classroom setting here. I want to change the Blender submission dialogue and take things out of it. Whenever I go to the python file and take things out, the changes are saved but the “Submit” button does not work. How would I go about fixing this? I also want to change the default location for the Output file field.

Feel free to post your working version of the script and a specific list of things you need removing/defaults set to and I should be able to whip it up for you.

I need the following fields removed:
Comment
Department
Pool
Secondary Pool
Priority
Task Timeout
Concurrent Tasks
Machine Limit
Machine List
Limits
Threads
Build to Force
Dependencies

I need the following field defaults changed:
Output file: /Volumes/Deadline/Completed Jobs/“Job Name Variable”/####.png
NOTE: Is there a variable (like ####) to have it generate a folder with the Job Name as it’s title, or maybe there is another variable that would help us distinguish between rendered jobs in the Completed Jobs folder.

Do you need any default values to be injected into the job for any of these values? For example, removing the “pool”, will result in the job being submitted to the “none” pool. Otherwise the job will use whatever the default values are in the plugin.

Comment
Department
Pool
Secondary Pool
Priority
Task Timeout
Concurrent Tasks
Machine Limit
Machine List
Limits
Threads
Build to Force
Dependencies

Can you confirm what exact version of Deadline is this for?

I presume you want everything in the “Integration” tab to remain?

The Output filename & path could be built up automatically by the submission script once the use hits submit, so no need for them to enter an Output File. Although, you may want them to? Or allow a certain amount of customisation to stop the same named “Job Name” from overwriting each other? Perhaps, a unique directory name based on Job Name & TimeStamp of submission?

Pool: students
Version 7.0.3.0
And please remove the Integration tab as well. Forgot to add that.
Yes, the idea is that we need a unique directory name for each job that we can distinguish from one another.
Thanks for doing this,
Brad

Cool. Work-In-Progress screenshot. Thoughts?
The output path/directory can be calculated on submission. Is there a set file format everyone must render to? If the Blender file already has an output file & path set in its file, we should always be overriding it?
Are you submitting from the monitor or directly from Blender, via this monitor submission script UI?

Screen Shot 2015-04-16 at 01.20.43.png

ok, here’s a first draft of this little hackathon. Have a play and see what you think. Try browsing for a blend scene file and see how the job name gets updated and once submitted, the output directory is created which is “…/your fixed output directory path/jobName_timeStamp/jobName####.png” where jobName is the Blender Scene file name provided.

I suggest you unzip the python file and place it in your repo here: “…/your_deadline_repo/custom/scripts/submission/”, then it will automatically override the version of the Blender Submission script we ship with, but if you ever run the repository installer for an upgrade, your script won’t be over-written and will continue to work. If Thinkbox ever updates the Blender Submission script, then you can carry out a diff-compare and see what changes have been made and whether you need to merge the code in places or not.

I’m off for a long wkd, so catch you Monday if you have any further questions.

BlenderSubmission.py.zip (2.77 KB)

So far it seems to be working but we had an incident where the repository got deleted. Now its a matter of re-configuring everything so we didn’t get a chance to test it. But it looks great! Thanks for doing that.

Is there any way that you could modify the QuickTime submission script for me? The only fields I will need are:
Input Images
Output Movie File needs to be set up the same as the Blender submission script you gave me. And if you could, change it so the folder name is not the time submitted but the name of the blender file.
Start Frame, End Frame
Codec, Frame rate
Audio File

Sure. See attached. Same as the Blender one.

QuicktimeSubmission.py.zip (3.67 KB)

The Quicktime submitter already handles the output file & job name based on the input images being provided.

Give it a try and see what you think.

If you need to modify it to have a certain output directory path, then you can use what I did in the Blender script to recreate something similar in the Quicktime Submitter within the function: “def InputImagesModified(*args)”. Here’s a snippet to help:

outputFile = FrameUtils.GetFilenameWithoutPadding( sceneFile ) prefix = Path.GetFileNameWithoutExtension( outputFile ) outputPath = prefix + "_" + date( "%Y-%m-%d_%H-%M-%S" ) directory = Path.Combine( "/Volumes/Deadline/Completed Jobs/", outputPath ) extension = ".mov" outputFile = Path.Combine( directory, prefix + padding + extension )