From ab4ed37604dd7a4b24b08c29798f261788834967 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Thu, 3 Nov 2022 12:15:22 +0100 Subject: [PATCH] OP-3909 - fix - use family to filter instances cached instances are dictionary where keys are creator identifier, eg family. --- openpype/hosts/aftereffects/plugins/create/create_render.py | 2 +- openpype/hosts/aftereffects/plugins/create/workfile_creator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openpype/hosts/aftereffects/plugins/create/create_render.py b/openpype/hosts/aftereffects/plugins/create/create_render.py index 7a81c7754b..a324779d2e 100644 --- a/openpype/hosts/aftereffects/plugins/create/create_render.py +++ b/openpype/hosts/aftereffects/plugins/create/create_render.py @@ -32,7 +32,7 @@ class RenderCreator(Creator): instances = cache_and_get_instances(self, "openpype.aftereffects.instances", self.host.list_instances) - for instance_data in instances: + for instance_data in instances.get(self.family, []): # legacy instances have family=='render' or 'renderLocal', use them creator_id = (instance_data.get("creator_identifier") or instance_data.get("family", '').replace("Local", '')) diff --git a/openpype/hosts/aftereffects/plugins/create/workfile_creator.py b/openpype/hosts/aftereffects/plugins/create/workfile_creator.py index 10d3685869..469af6bbeb 100644 --- a/openpype/hosts/aftereffects/plugins/create/workfile_creator.py +++ b/openpype/hosts/aftereffects/plugins/create/workfile_creator.py @@ -21,7 +21,7 @@ class AEWorkfileCreator(AutoCreator): instances = cache_and_get_instances(self, "openpype.aftereffects.instances", self.host.list_instances) - for instance_data in instances: + for instance_data in instances.get(self.family, []): creator_id = instance_data.get("creator_identifier") if creator_id == self.identifier: subset_name = instance_data["subset"]