mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #4382 from BigRoy/houdini_context_no_visual
This commit is contained in:
commit
08fe47ee18
1 changed files with 9 additions and 2 deletions
|
|
@ -144,13 +144,20 @@ class HoudiniHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
obj_network = hou.node("/obj")
|
obj_network = hou.node("/obj")
|
||||||
op_ctx = obj_network.createNode(
|
op_ctx = obj_network.createNode("null", node_name="OpenPypeContext")
|
||||||
"null", node_name="OpenPypeContext")
|
|
||||||
|
# A null in houdini by default comes with content inside to visualize
|
||||||
|
# the null. However since we explicitly want to hide the node lets
|
||||||
|
# remove the content and disable the display flag of the node
|
||||||
|
for node in op_ctx.children():
|
||||||
|
node.destroy()
|
||||||
|
|
||||||
op_ctx.moveToGoodPosition()
|
op_ctx.moveToGoodPosition()
|
||||||
op_ctx.setBuiltExplicitly(False)
|
op_ctx.setBuiltExplicitly(False)
|
||||||
op_ctx.setCreatorState("OpenPype")
|
op_ctx.setCreatorState("OpenPype")
|
||||||
op_ctx.setComment("OpenPype node to hold context metadata")
|
op_ctx.setComment("OpenPype node to hold context metadata")
|
||||||
op_ctx.setColor(hou.Color((0.081, 0.798, 0.810)))
|
op_ctx.setColor(hou.Color((0.081, 0.798, 0.810)))
|
||||||
|
op_ctx.setDisplayFlag(False)
|
||||||
op_ctx.hide(True)
|
op_ctx.hide(True)
|
||||||
return op_ctx
|
return op_ctx
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue