-
Notifications
You must be signed in to change notification settings - Fork 10
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
Creators: Remove legacy pop
of the 'active' data on create of instance.
#41
Creators: Remove legacy pop
of the 'active' data on create of instance.
#41
Conversation
This was a leftover from legacy creator where the active state was defined by the Bypass state of the node instead of a dedicated parm for the publisher.
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.
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.
It works.
What about adding these few lines here and remove node = hou.node(node_path)
if hasattr(node, "isBypassed") and node.isBypassed():
node_data["active"] = False Side note: I think your question is related to this issue #16 |
We could - but I believe the relying on the "bypass" state was removed on purpose to avoid interfering with a native houdini feature that artists may use for something else. @antirotor was back then involved with that decision-making. So if we were to stick with that I'd say just remove that collector (and then of course still validate that nodes that are set to bypass do actually actively render the ROPs the way we want them to.) (they should still work in publishing then.) |
I'd appreciate shedding some light on these feature. The only thing I was able to think of is publishing existing files as Houdini will skip rendering without not raising any errors. |
Thanks - we could make the Bypass validation optional and force the I'll merge this PR. The Collect Active State collector being removed is in a separate PR #42 |
Changelog Description
Creators: Remove legacy
pop
of the 'active' data on create of instance.Additional info
This was a leftover from legacy creator where the active state was defined by the Bypass state of the node instead of a dedicated parm for the publisher.
There also seems to be this left-over Collect Active State plug-in. Which currently would be unable to activate any inactive instances as far as I know because new publisher would have those instances already deactivated from CreateContext. However, it will disable instances if the node were currently set to "bypass" but the instance was active in publisher.
Question: Should we also remove the Collect Active State plug-in to avoid this unwanted side effect?
This fixes the default active state creation for ynput/ayon-core#774 combined with #36
Testing notes: