mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
OP-3909 - fix - use family to filter instances
cached instances are dictionary where keys are creator identifier, eg family.
This commit is contained in:
parent
adb683bdfc
commit
ab4ed37604
2 changed files with 2 additions and 2 deletions
|
|
@ -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", ''))
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue