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

Isolate view on instance members. #425

Merged

Conversation

tokejepsen
Copy link
Member

Resolves #367

@tokejepsen tokejepsen added type: enhancement Enhancements to existing functionality host: Maya labels Aug 11, 2020
@tokejepsen tokejepsen requested a review from mkolar August 11, 2020 12:55
@tokejepsen tokejepsen self-assigned this Aug 11, 2020
@mkolar mkolar added this to the 2.12 milestone Aug 11, 2020
Copy link
Member

@mkolar mkolar left a comment

Choose a reason for hiding this comment

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

Good start, but this doesn't cover standard use case yet. A few simple tweaks would do it though.

Looking at the amount of member is too implicit, and it only deals with review that is not being attached directly to subset. So it shot workflow this would do the trick but not for assets.

I would add data["isolate"] = True to review creator so it can be controlled less magically.

extractor can then have

if (len(instance.data["setMembers"]) > 1 or instance.data["isolate"]):
            preset["isolate"] = instance.data["setMembers"]`

to support both implicit and explicit

Another thing is that isolate attributeneeds to be copied do subset underneath the review if there is one. Addingdata['isolate'] = instance.data.get('isolate')` to collect_review.py line 66 would do it.

That way it works across the board.

@mkolar
Copy link
Member

mkolar commented Aug 11, 2020

Second common situation is when artist want's to publish review of isolated model + some surrounding area and publish multiple from the same scene. For instance here where plinth is just a help model under the main model object
image

In that situation, we should be isolating all the object in both sets.

@mkolar
Copy link
Member

mkolar commented Aug 11, 2020

this is what it looks like when publishing 2 model variants with review from maya for instance
unknown (1)

you'll end up with modelFat and modelMain both of which will have abc, ma, mov representations
isolate is ideal for these scenarios as well, because artist could publish at the same time. now they have to switch visibility by hand when making multiple variants from the same scene

@tokejepsen
Copy link
Member Author

I would add data["isolate"] = True to review creator so it can be controlled less magically.

Think this is a good idea as the sole indicator for whether to isolate or not. I would go as far as nothing implicitly assumed except for backwards compatibility, so no member query.

Another thing is that isolate attributeneeds to be copied do subset underneath the review if there is one. Addingdata['isolate'] = instance.data.get('isolate')` to collect_review.py line 66 would do it.

I dont quite get why it needs to be copied to instance below?

Second common situation is when artist want's to publish review of isolated model + some surrounding area and publish multiple from the same scene. For instance here where plinth is just a help model under the main model object

Just testing this and it works with the current code. Child objectsets gets correctly isolated.

@mkolar
Copy link
Member

mkolar commented Aug 12, 2020

I don't quite get why it needs to be copied to the instance below?

because when using this workflow (attaching review to another subset), the review subset itself get's deleted at the end of the collection and its relevant data is being passed to the main subset that it's being attached to. If we don't copy the attribute to the instance below, it won't get isolated.

I"ll try again, but with all my tests, this wasn't working.

@tokejepsen
Copy link
Member Author

Let me know how the testing goes.

Any thoughts on just using isolate attribute explicitly, rather than any implicit behaviour?

@mkolar
Copy link
Member

mkolar commented Aug 13, 2020

Any thoughts on just using isolate attribute explicitly, rather than any implicit behaviour?

I'm always for explicit. So absolutely. I'd drop the implicit behaviour completely.

@tokejepsen
Copy link
Member Author

I'm always for explicit. So absolutely. I'd drop the implicit behaviour completely.

Done

@mkolar
Copy link
Member

mkolar commented Aug 17, 2020

Thanks.

The attribute works fine now, however, it still needs this

Another thing is that isolate attributeneeds to be copied do subset underneath the review if there is one. Addingdata['isolate'] = instance.data.get('isolate')` to collect_review.py line 66 would do it.

without copying the isolate attribute to the subset inside the review set, it will not isolate the subset that the review is being attached to. I"ve tested it multiple times.

@tokejepsen tokejepsen changed the title Isolate view on instance members if more than camera (one object). Isolate view on instance members. Aug 17, 2020
@tokejepsen
Copy link
Member Author

without copying the isolate attribute to the subset inside the review set, it will not isolate the subset that the review is being attached to. I"ve tested it multiple times.

Done

@mkolar
Copy link
Member

mkolar commented Aug 17, 2020

resolves #367

@mkolar mkolar changed the base branch from 2.x/develop to release/2.12.0-rc August 21, 2020 14:53
@mkolar mkolar merged commit e42264c into ynput:release/2.12.0-rc Aug 21, 2020
@tokejepsen tokejepsen deleted the 2.x/feature/maya_isolate_view branch August 21, 2020 15:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Maya type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants