mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
Merge remote-tracking branch 'origin/hotfix/integrate_ftrack_with_avalon' into master-testing-local
This commit is contained in:
commit
175a10f989
1 changed files with 12 additions and 0 deletions
|
|
@ -85,6 +85,18 @@ class IntegrateHierarchyToFtrack(pyblish.api.ContextPlugin):
|
|||
type=entity_type,
|
||||
parent=parent
|
||||
)
|
||||
|
||||
if entity.entity_type.lower() not in ["task", "project"]:
|
||||
filter = {
|
||||
"type": "asset",
|
||||
"name": entity_name
|
||||
}
|
||||
update_data = {
|
||||
"data.ftrackId": entity["id"],
|
||||
"data.entityType": entity.entity_type
|
||||
}
|
||||
io.update_one(filter, update_data)
|
||||
|
||||
# self.log.info('entity: {}'.format(dict(entity)))
|
||||
# CUSTOM ATTRIBUTES
|
||||
custom_attributes = entity_data.get('custom_attributes', [])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue