Hey,
Is there a way to get the jobs “Job Info Parameters” and “Plugin Info Parameters” in an event plugin?
Hey,
Is there a way to get the jobs “Job Info Parameters” and “Plugin Info Parameters” in an event plugin?
For sure!
You can use GetJobInfoKeys() and GetJobPluginInfoKeys() to get the keys, and GetJobInfoKeyValue() and GetJobPluginInfoKeyValue() to get the values.
We’ve got an example that uses those to copy a job’s properties on the public Github here: github.com/ThinkboxSoftware/Dea … omTasks.py
I wrote it, so I should be able to answer any questions about it.
Thank you Justin, that works great!
One slight mistake in the code; github.com/ThinkboxSoftware/Dea … sks.py#L85, should be “GetJobExtraInfoKeyValue”
Oh, good spot! That’s what I get for testing on jobs without extra info values.