Merge remote-tracking branch 'origin/hotfix/integrate_ftrack_with_avalon' into master-testing-local

This commit is contained in:
jakub@orbi.tools 2020-01-15 16:55:30 +01:00
commit 175a10f989

View file

@ -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', [])