As long as the Draft job got submitted through the Draft Event plugin (ie, got automatically created when the first job finished), or if you submitted it through a Job’s right-click Draft Submission script, the dependent Job’s ID should be getting passed as a command-line parameter to the Script, in the form ‘deadlineJobID=’. You can either parse this out yourself (from sys.argv), or use the DraftParamParser utility function to do it:
import sys
from DraftParamParser import *
paramDict = ParseCommandLine_TypeAgnostic( sys.argv )
jobID = paramDict[ "deadlineJobID" ] #contains the original Job's ID
I have a similar question, so I’ll go ahead and post in here instead of starting a new thread.
I wanted to know what the best way is to convert between file formats while maintaining the correct colors. For example, when converting from exr to jpg, I use ApplyGamma(1.0 / 2.0) since I’m converting from linear to sRGB. This works fine if I’m always converting from linear to sRGB, but it could just be sRGB to sRGB to which I’d just leave the gamma alone. Is there a GetGamma method, or GetMetadata method to check the color space before applying gamma? or maybe a better way of going about this?