Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Multiple reviews where being overwritten to one. #424

Merged
merged 3 commits into from
Aug 13, 2020

Conversation

tokejepsen
Copy link
Member

No description provided.

@tokejepsen tokejepsen added type: bug Something isn't working host: Maya labels Aug 11, 2020
@tokejepsen tokejepsen requested a review from mkolar August 11, 2020 11:57
@tokejepsen tokejepsen self-assigned this Aug 11, 2020
@mkolar
Copy link
Member

mkolar commented Aug 11, 2020

I assume this was when making multiple reviews from multiple cameras?

@tokejepsen
Copy link
Member Author

The use case I have is to publish a "main" and "precomp" review. The precomp have isolated view and the main has everything.

Multiple cameras would be another use case I guess.

@@ -69,7 +69,12 @@ def process(self, instance):
instance.data['remove'] = True
i += 1
else:
instance.data['subset'] = task + 'Review'
subset = "{}{}{}".format(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well, however we'll need to add backwards compatible option in here. Some of our clients are relying on this in production now and have custom scripts and setup locked to previous neming (without the subset name), we can't change this mid-project.

Let's please add a switch configurable using self.legacy=true presetable attribute, that defaults to True and when on behaves as before. Like that it can go out in 2.12 at the end of the week.

From 2.13 or 14, we can then switch it OFF by default. and in pype 3 remove it. what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a good idea. Done.

@mkolar mkolar added this to the 2.12 milestone Aug 11, 2020
@@ -69,7 +69,16 @@ def process(self, instance):
instance.data['remove'] = True
i += 1
else:
instance.data['subset'] = task + 'Review'
if instance.data.get("legacy", True):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should rather be a class attribute, that way it is configurable per project and per studio. It will make the transition much easier.

It's not something that the artist should have control over, but studio config should.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, that makes sense. Done.

@mkolar mkolar merged commit 9be94c1 into ynput:2.x/develop Aug 13, 2020
@tokejepsen tokejepsen deleted the 2.x/bugfix/maya_multiple_reviews branch August 13, 2020 15:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Maya type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants