-
Notifications
You must be signed in to change notification settings - Fork 39
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
Houdini: Sync publisher attributes with node parameters #418
Houdini: Sync publisher attributes with node parameters #418
Conversation
client/ayon_core/hosts/houdini/plugins/create/create_redshift_rop.py
Outdated
Show resolved
Hide resolved
client/ayon_core/hosts/houdini/plugins/create/create_redshift_rop.py
Outdated
Show resolved
Hide resolved
Is there any reason why to touch the ayon-core/client/ayon_core/hosts/max/plugins/create/create_review.py Lines 43 to 55 in 0d3fb5e
ayon-core/client/ayon_core/hosts/substancepainter/plugins/create/create_textures.py Lines 38 to 48 in 0d3fb5e
|
…creator_attribs_change
No, not really. 2024-04-18.17-38-29.mp4I find it confusing.. |
Co-authored-by: Roy Nieterau <[email protected]>
…s_change' of https://github.com/ynput/ayon-core into enhancement/update_houdini_node_parms_on_creator_attribs_change
After some overthinking here's another demo where Houdini parameters are used as the single source of truth.
2024-04-18.22-46-38.mp4 |
I can see why now. If you talk about updating the |
…creator_attribs_change
…creator_attribs_change
…s_change' of https://github.com/ynput/ayon-core into enhancement/update_houdini_node_parms_on_creator_attribs_change
…creator_attribs_change
I found some case that doesn't work with this PR. Because there are no changes, the save button won't even work so in this particular case, the method that's used to update the Houdini nodes won't be even called. so the node and publisher attributes will be out of sync. 2024-05-10.21-53-37.mp4 |
At this stage, I'd say it's expected. If you after "reset" or refresh or save start tweaking stuff inside the Houdini scene without resetting/refreshing again then that'd be user error and should not be an "allowed workflow". However, changing something in Houdini and then clicking "reset" should actually detect the new values preferably. |
But, in this case, Should the validators tell if publish attributes and Houdini node parameters are not in sync ? For reference, in the above screen record, the redshift node will be published with
This is the current state of this PR. |
…creator_attribs_change
Well, you're right that in ideal world, you would have a set of validators checking that those options are in sync - but imho it is lot of work to catch all reliably. Maybe it is enough to check state of the scene, compare checksums of the state before and after - but even that cannot be done 100% reliable. To make it work, you would need to track every individual option in houdini nodes affecting the current publishing process. If this can be done easily, I am completely for it - maybe there are some events we can bind to - something like "on scene change display visual warning that publisher UI can be outdated - but I think this is adding more complexity then there are gains from it. For me it is enough to clearly document how it behaves. |
Closing this PR as it adds more complexity then there are gains from it. |
Changelog Description
Use Houdini node parameters as the source of truth while using metadata as temp values.
This PR adds two methods to creator class which sync the attributes in the publisher to Houdini nodes.
update_node_parameters
update node parameters according the metadata (user preference in the publish tab.) It's triggered when user click save button in publisherread_node_data
update metadata according to the node parameters. It's triggered when user click refresh button in publisherThings left: check these product types:
update_node_parameters
read_node_data
Demo
2024-04-18.22-46-38.mp4
Testing notes: