submit command line from Nuke: dependancy

Hi guys,

I’m building a script to generate an avi from my Nuke rendered tga’s.
I’ve been able to create a batch file that could be submitted from deadline,
but I want to automate the whole thing. I can probably rig something up
based on Ryan’s Nuke submission script.
But here is the catch: How do I set up the dependancy so that my tga to avi
conversion doesn’t start until the nuke job is finished. In other words,
I’d like to catch the job id from the nuke job and use that as the job it’s dependant on.

Any pointers?

Cheers!

Dennis

Hey Dennis,

There might be a couple of ways to do this:

  1. Part of the stdout that is printed from deadlinecommand when it submits a job includes the job’s ID. So you can parse this stdout from the submission of the first job and use that job ID in the JobDependencies setting for the job info file of the second job:
    software.primefocusworld.com/sof … ptional.29

  2. deadlinecommand has a command called SubmitMultipleJobs that can be used to submit multiple jobs at once. This command has a -dependent flag that will make each job in the list of jobs specified dependent on the previous job. So for example:

deadlinecommand.exe -SubmitMultipleJobs -dependent -job tga_job_info_file.job tga_plugin_info_file.job tga_script.nk -job avi_job_info_file.job avi_plugin_info_file.job avi_script.nk

The SubmitMultipleJobs command usage can be found here:
software.primefocusworld.com/sof … ne_Options

Hope this helps!

  • Ryan

Hey Ryan,

That worked a treat!
All I needed to do was add -multi -dependent to your submitnuketodeadline script
and pipe in my own job info files.

Now i’ve got automatic downsizing to PAL avi’s for my offline editor :slight_smile:

Thanks a bunch! :smiley:

Cheers!
Dennis