ftrack: optional plugin with optional attributes

This commit is contained in:
Jakub Jezek 2022-07-21 09:12:02 +02:00
parent 09182b312e
commit b60384f534
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 19 additions and 1 deletions

View file

@ -13,7 +13,10 @@ class IntegrateFtrackComponentOverwrite(pyblish.api.InstancePlugin):
active = False
def process(self, instance):
component_list = instance.data['ftrackComponentsList']
component_list = instance.data.get('ftrackComponentsList')
if not component_list:
self.log.info("No component to overwrite...")
return
for cl in component_list:
cl['component_overwrite'] = True

View file

@ -930,6 +930,21 @@
}
]
},
{
"type": "dict",
"collapsible": true,
"checkbox_key": "enabled",
"key": "IntegrateFtrackComponentOverwrite",
"label": "IntegrateFtrackComponentOverwrite",
"is_group": true,
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
}
]
},
{
"type": "dict",
"key": "IntegrateFtrackInstance",