mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
add renderlayer and aov_name to dynamic_data of get_product_name
This commit is contained in:
parent
0bcf3d3fda
commit
9012e52a4b
1 changed files with 12 additions and 4 deletions
|
|
@ -74,10 +74,18 @@ class CollectLocalRenderInstances(pyblish.api.InstancePlugin):
|
|||
)
|
||||
|
||||
for aov_name, aov_filepaths in expectedFiles.items():
|
||||
product_name = product_group
|
||||
|
||||
if aov_name:
|
||||
product_name = "{}_{}".format(product_name, aov_name)
|
||||
product_name = get_product_name(
|
||||
context.data["projectName"],
|
||||
context.data["taskEntity"]["name"],
|
||||
context.data["taskEntity"]["taskType"],
|
||||
context.data["hostName"],
|
||||
product_type,
|
||||
instance.data["productName"],
|
||||
dynamic_data={
|
||||
"renderlayer": instance.data["renderlayer"],
|
||||
"aov": aov_name
|
||||
}
|
||||
)
|
||||
|
||||
# Create instance for each AOV
|
||||
aov_instance = context.create_instance(product_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue