AWS Thinkbox Discussion Forums

Submit Draft Job from Command-Line

Hi,

Is it possible to submit a draft job from the console using “deadlinecommand -SubmitCommandLineJob”? I don’t find any executable for draft.

Thanks
Maxime

For Draft jobs, the actual executable is Python. However, I think it would be easier to submit such jobs using the Draft plugin. Is that reasonable in your case?

To submit a Draft job from the command line, first create a job_info.txt:

Plugin=Draft Frames=0
Then create a plugin_info.txt (replace \path\to\my_draft_script.py with the actual path to your Draft script):

scriptFile=\\path\to\my_draft_script.py

Finally, submit the job to Deadline, using the console command:

deadlinecommand job_info.txt plugin_info.txt

Just wanted to add a couple things to Paul’s post; if you want to control other aspects of the submitted Job (such as group, pool, priority etc), you’ll need to add extra lines to the job_info.txt file. You can check which lines you’d have to add by reading our relevant documentation here:
thinkboxsoftware.com/deadlin … _Info_File

Similarly, if you want to pass any commandline arguments to your Draft script, you’ll have to add them to the plugin_info.txt file as follows:
ScriptArg[0+]=ArgName=ArgValue
(Remember to put quotes around string values when appropriate!)

For example, this is a sample I stole from my latest Draft submission’s plugin info file:

ScriptArg0=username="" 
ScriptArg1=entity="" 
ScriptArg2=version="" 
ScriptArg3=frameList= 
ScriptArg4=outFolder="C:\Test\img_seq\Draft" 
ScriptArg5=outFile="C:\Test\img_seq\Draft\" 
ScriptArg6=inFile="C:\Test\img_seq\base.png" 

Cheers,

  • Jon

Ok.

Thank you guys. I guess I can use the “job_info/plugin_info” way to launch my Draft job. I only made one python script to be submitted with “deadlinecommand” yet, and I didn’t use this method, so I’ll give it a try.

Thank you again
Maxime

Privacy | Site terms | Cookie preferences