diff --git a/openpype/hosts/aftereffects/plugins/create/create_render.py b/openpype/hosts/aftereffects/plugins/create/create_render.py index a324779d2e..2bd6ecd9b5 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.get(self.family, []): + for instance_data in instances.values(): # 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 469af6bbeb..e6f4348526 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.get(self.family, []): + for instance_data in instances.values(): creator_id = instance_data.get("creator_identifier") if creator_id == self.identifier: subset_name = instance_data["subset"]