Nuke Deadline Submission without UI

Hi Guys,

I am having a problem of submitting a Nuke job to deadline, WITHOUT using the UI.

From within Nuke, I want to be able to run one script what will do a bunch of stuff within nuke, and then automatically collect the params I want, and then submit it to deadline.
At the moment it works fine if i run my commands, then open the submit to deadline UI, then click ok - but it really needs to be a one-click solution.

I have tried playing with the original file to cut out the UI, but I’m not amazing at python, and i just cant get it to work.

Has anyone tried this?

Any help would be great

thanks
M

You can do a command line submission with DeadlineCommand.

You can export the job submission files from an existing job’s properties page, then submit them like so:

“c:\program files\Thinkbox\Deadline6\bin\deadlinecommand” XXX_jobInfo.job XXX_pluginInfo.job

That will create an exact copy of the job as it was submitted. Start from there, and start fiddling with the options until you get something that works for you.

If you need more info, just let us know.

That looks like a great starting point.

Should I be able to run deadlineCommand inside Nuke using python?

Thanks.
M

Yes - works a treat!

thanks a million.

for anyone else interested you can use the subprocess python command to run a command from within nuke.
eg:

import subprocess from subprocess import call subprocess.call(["C:/Program Files/Thinkbox/Deadline6/bin/deadlinecommand.exe", "XXXX_jobInfo.job", "XXX_pluginInfo.job"])

Oh! Also if you want to make the script future proof for when 7.0 is released, see if you can use the environment variable “DEADLINE_PATH”. Deadline Command should always be in that folder going forward.

Thanks for the heads up!