-
Notifications
You must be signed in to change notification settings - Fork 32
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: Workfile creator fix call to create_context_node
on create
#506
Houdini: Workfile creator fix call to create_context_node
on create
#506
Conversation
A question that might be irrelevant to this PR: I add a stupid print statement inside it to find out when this method is triggered ? When it's not called
When it's called
I think I can now understand your comment:
The only way to show the error is by adding hou.node(CONTEXT_CONTAINER).destroy() between these two lines ayon-core/client/ayon_core/hosts/houdini/plugins/create/create_workfile.py Lines 97 to 98 in 0e4e845
|
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.
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.
Make Sense as create_context_node
function lives in HoudiniHost
class
Changelog Description
Fix call to
create_context_node
on create.Additional info
The method only exists on the houdini host - not on the plugin itself.
Note that it would actually never error currently because apparently this gets called just beforehand elsewhere:
ayon-core/client/ayon_core/hosts/houdini/api/pipeline.py
Lines 176 to 178 in 57d2250
Which in itself, also generates the node. But at least this fixes the broken code were the issue to arise that the node did not exist at that point in time.
I'd actually want to refactor
HoudiniHost.get_context_data()
to not create a node unless it were 'updating' data. Because now even on querying data it creates a node - which to me feels like the wrong point in time to do so.Testing notes:
Publishing should work.