AWS Thinkbox Discussion Forums

Setting up multiple draft scripts after a job

This is half draft / half deadline.

I’ve got a pipeline as follows: Artists render to Tif (from AE / C4D / Redshift) then trigger a modified draft script (that doesn’t actually use draft processing, but calls my own commands to .exe’s) to crop the tif into multiple files. After that I’m using FFMpeg to concate the cropped images into final files. Currently this all works fine, however I’ve not automated the process. I can’t call the concate until I know all the frames have been cropped, so need that job as a dependency, but I can’t make that dependency until the first main job has finished and trigger the draft event plugin.

What’s the best process to handle these multiple stages in a manor that I can have artists select an option in the submission script, or have someone add the scripts to a job already submitted?

If the crops are separate tasks of a single job, you can use a PostJobScript to trigger the concatenation.

Otherwise, you can also immediately trigger the concatenation job as suspended, and add a dependency each time a crop job gets submitted. This method has a slight risk of a race condition, which causes dependencies to be missed.

Does the post job and post task scripts pass arguments into the script so I can get the infile, outfile frame number etc?

Yes, have a look at the documentation, the post job script can reference the plugin and the job from which it was triggered.
https://docs.thinkboxsoftware.com/products/deadline/10.1/1_User%20Manual/manual/job-scripts.html

Privacy | Site terms | Cookie preferences