OP-3940 - added optionality to collector

There might be a reason when artist would like to skip this synchronization for specific workfile.
This commit is contained in:
Petr Kalis 2022-09-14 18:32:08 +02:00
parent d93a18fd89
commit d0b8437cfd
3 changed files with 7 additions and 0 deletions

View file

@ -19,6 +19,7 @@ class CollectVersion(pyblish.api.InstancePlugin):
families = ["image", "review"]
# controlled by Settings
optional = True
sync_workfile_version = False
def process(self, instance):

View file

@ -16,6 +16,7 @@
"flatten_subset_template": ""
},
"CollectVersion": {
"optional": true,
"sync_workfile_version": true
},
"ValidateContainers": {

View file

@ -137,6 +137,11 @@
"key": "CollectVersion",
"label": "Collect Version",
"children": [
{
"type": "boolean",
"key": "optional",
"label": "Optional"
},
{
"type": "label",
"label": "Synchronize version for image and review instances by workfile version."