Deadline Shotgun Versions

I wonder what script in Deadline Repository should to be tweaked to customize how Deadline handles Shotgun’s Versions generation when the render Job is submitted.
We added another “Rendering” type to Versions in Shotgun (adding another type to Version is as simple as just typing the new type name using Admin - Fields).
Now we want Deadline automatically set the Versions type it creates to “Rendering”. So we could filter the Versions display in Shotgun using Shotguns filters (show no other type of Versions but “Rendering” for example).
What script I should dive into in order to add the line that would append the “Rendering” type to the generated by Deadline Versions.

You’ll want to edit the Shotgun.py script under the events/Shotgun folder in your Repository. This is the script that handles all the Deadline events for the Shotgun event plugin (such as when a job is submitted, starts rendering, is completed, etc).

It’s pretty straightforward, but if you need more information on the general structure of our Event Plugins and how they work, you can check our docs on it here: thinkboxsoftware.com/deadlin … -_Required

Cheers,

  • Jon

Thanks for the help Jon!

I have added a line into a data variable in AddNewVersion() function:

[i]data[/i] = { 
	'user': user,
	'code': version,
	[b]'sg_version_type': 'Rendering',[/b]
	'description': description
	}

Now in Shotgun I can filter and display only those Versions that were (rendered first and) created by Deadline.

Good stuff! Glad to be of help :slight_smile:

Cheers,

  • Jon