-
Notifications
You must be signed in to change notification settings - Fork 129
OP-2566: remove underscore from subset name #4059
OP-2566: remove underscore from subset name #4059
Conversation
Hi Libor! I tested the code without turning on MergeAOVs, so that I can check to see if there's any extra underscore created after the AOV with the empty name. It's a weird ticket, you can check more information in ClickUp: https://app.clickup.com/t/6658547/OP-2566 |
tested in I have Main layer (beauty) + N pass (without deleting AOV name) + Specular AOV (with deleted name)...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems working in both maya2022
and maya2023
if cam: | ||
subset_name = '{}_{}_{}'.format(group_name, cam, aov) | ||
if aov: | ||
subset_name = '{}_{}_{}'.format(group_name, cam, aov) | ||
else: | ||
subset_name = '{}_{}'.format(group_name, cam) | ||
else: | ||
subset_name = '{}_{}'.format(group_name, aov) | ||
if aov: | ||
subset_name = '{}_{}'.format(group_name, aov) | ||
else: | ||
subset_name = '{}'.format(group_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this have been more succinct with something like this?
subset_name = group_name
if cam:
subset_name += "_{}".format(cam)
if aov:
subset_name += "_{}".format(aov)
Or even:
subset_name = group_name
for suffix_element in [cam, aov]:
if suffix_element:
subset_name += "_{}".format(suffix_element)
Or even:
parts = [part for part in [group_name, cam, aov] if part]
subset_name = "_".join(parts)
Ok, that last one might be a bit too far for readability 😆
Just be sure - this is a backwards incompatible change in that existing renders would now generate a new subset without the underscore, correct? |
Task linked: OP-2566 remove underscore from subset name |
Just updated some things on our end and it seems this is definitely backwards incompatible. Is there any way for legacy renders/scenes to still include the trailing We're now getting publishes with a new name: |
For now I added legacy support for a project on our end: BigRoy@92d12f2 |
Brief description
remove unnecessary underscore from subset name when rendering without AOVs
Description
When publishing the render with the empty AOV name, it will create subset name with underscore at the end. (See the screenshot below)
This PR will fix the issue of adding extra underscore at the end when publishing the render.
Additional info
This is only tested in maya Host.
Testing notes: