mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
ftrack: optional plugin with optional attributes
This commit is contained in:
parent
09182b312e
commit
b60384f534
2 changed files with 19 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue