diff --git a/openpype/modules/ftrack/event_handlers_server/event_sync_to_avalon.py b/openpype/modules/ftrack/event_handlers_server/event_sync_to_avalon.py index d4dc53b6558..21a26a894ce 100644 --- a/openpype/modules/ftrack/event_handlers_server/event_sync_to_avalon.py +++ b/openpype/modules/ftrack/event_handlers_server/event_sync_to_avalon.py @@ -540,7 +540,6 @@ def filter_updated(self, updates): ent_info["keys"] = ["name"] ent_info["changes"] = {"name": changes.pop("name")} filtered_updates[ftrack_id] = ent_info - continue for _key in self.ignore_keys: if _key in changed_keys: @@ -662,6 +661,10 @@ def launch(self, session, event): elif "typeid" in changes or "name" in changes: self.modified_tasks_ftrackids.add(ent_info["parentId"]) + elif action == "update": + self.modified_tasks_ftrackids.add(ent_info["parentId"]) + found_actions.add(action) + entities_by_action[action][ftrack_id] = ent_info continue if action == "move": @@ -1927,6 +1930,8 @@ def process_updated(self): cust_attrs_by_obj_id[obj_id][key] = cust_attr for ftrack_id, ent_info in ent_infos.items(): + if ent_info["entity_type"] == "Task": + ftrack_id = ent_info["parentId"] mongo_id = ftrack_mongo_mapping[ftrack_id] entType = ent_info["entityType"] ent_path = self.get_ent_path(ftrack_id) @@ -2440,7 +2445,8 @@ def process_task_updates(self): continue tasks_per_ftrack_id[ftrack_id][task_entity["name"]] = { - "type": task_type["name"] + "type": task_type["name"], + "custom_attributes": dict(task_entity["custom_attributes"]) } # find avalon entity by parentId