hou.Node.setComment() with "Show Comment in Network Editor"

   5282   2   1
User Avatar
Member
7 posts
Joined: Oct. 2016
Offline
Hello, in Houdini 16 you can have comments that show on the Network Editor. I would like users not to have to middle click the node in order to read the comment (blue speech bubble thingy).

When you right-click the node and press “Edit Comment…” it displays a dialog with a text box where you write the comment and a check box Show Comment in Network Editor, I would like to be able to tick that from the Python API, it would be great, specially for pipeline-y things. Is it possible?

Thanks.
User Avatar
Member
8184 posts
Joined: Sept. 2011
Offline
You can use the ‘setGenericFlag’ method of the node.

n = hou.node('/obj/cam1')
n.setGenericFlag(hou.nodeFlag.DisplayComment,True)
User Avatar
Member
7 posts
Joined: Oct. 2016
Offline
jsmack
You can use the ‘setGenericFlag’ method of the node.

n = hou.node('/obj/cam1')
n.setGenericFlag(hou.nodeFlag.DisplayComment,True)

Thank you! That was it
  • Quick Links