Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use product name templates for render products on local Houdini render #543

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def process(self, instance):
expectedFiles = next(iter(instance.data["expectedFiles"]), {})

product_type = "render" # is always render
# TODO: Match the value of product_group with the value of
# group_name in farm pyblish functions.
product_group = get_product_name(
context.data["projectName"],
context.data["taskEntity"]["name"],
Expand All @@ -74,10 +76,18 @@ def process(self, instance):
)

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)
Expand Down Expand Up @@ -119,6 +129,8 @@ def process(self, instance):
"productGroup": product_group,
"families": ["render.local.hou", "review"],
"instance_node": instance.data["instance_node"],
"renderlayer": instance.data["renderlayer"],
"aov": aov_name,
"representations": [
{
"stagingDir": staging_dir,
Expand Down
Loading