mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
change subset name for renderPass and renderLayer in instance collector
This commit is contained in:
parent
6f91253e41
commit
655c5f0463
1 changed files with 9 additions and 0 deletions
|
|
@ -32,6 +32,15 @@ class CollectInstances(pyblish.api.ContextPlugin):
|
|||
name = instance_data.get("name", subset_name)
|
||||
instance_data["name"] = name
|
||||
|
||||
# Replace family in subset name with `render`
|
||||
# - only for `renderPass` and `renderLayer`
|
||||
if family.lower() in ("renderlayer", "renderpass"):
|
||||
new_subset_name = "render".join(subset_name.split(family))
|
||||
instance_data["subset"] = new_subset_name
|
||||
self.log.debug("Changed subset name \"{}\"->\"{}\"".format(
|
||||
subset_name, new_subset_name
|
||||
))
|
||||
|
||||
active = instance_data.get("active", True)
|
||||
instance_data["active"] = active
|
||||
instance_data["publish"] = active
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue