-
Notifications
You must be signed in to change notification settings - Fork 129
Isolate view on instance members. #425
Isolate view on instance members. #425
Conversation
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.
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. Adding
data['isolate'] = instance.data.get('isolate')` to collect_review.py line 66 would do it.
That way it works across the board.
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.
I dont quite get why it needs to be copied to instance below?
Just testing this and it works with the current code. Child objectsets gets correctly isolated. |
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. |
Let me know how the testing goes. Any thoughts on just using |
I'm always for explicit. So absolutely. I'd drop the implicit behaviour completely. |
Done |
Thanks. The attribute works fine now, however, it still needs this
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. |
# Conflicts: # pype/plugins/maya/create/create_review.py
Done |
resolves #367 |
Resolves #367