mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
collect matching asset is only for psd_batch
This commit is contained in:
parent
f37da8d931
commit
b91695d12b
1 changed files with 2 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ class CollectMatchingAssetToInstance(pyblish.api.InstancePlugin):
|
|||
label = "Collect Matching Asset to Instance"
|
||||
order = pyblish.api.CollectorOrder - 0.05
|
||||
hosts = ["standalonepublisher"]
|
||||
family = ["image"]
|
||||
family = ["psd_batch"]
|
||||
|
||||
def process(self, instance):
|
||||
source_file = os.path.basename(instance.data["source"]).lower()
|
||||
|
|
@ -38,9 +38,7 @@ class CollectMatchingAssetToInstance(pyblish.api.InstancePlugin):
|
|||
f"Matching asset found: {pformat(matching_asset_doc)}"
|
||||
)
|
||||
|
||||
# QUESTION exception was limited to "psd_batch" family since
|
||||
# it is required for processing
|
||||
elif instance.data["family"] == "psd_batch":
|
||||
else:
|
||||
# TODO better error message
|
||||
raise AssertionError((
|
||||
"Filename \"{}\" does not match"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue