How to query the state of the display flag on a node?

   905   1   1
User Avatar
Member
1 posts
Joined: Sept. 2024
Offline
Hello, I was wondering if there was an easy way to query the state of the display flag on a specific node-- to check whether the blue icon is on or off? I DON'T want to alter it/set it like with setDisplayFlag(), I only want to know whether it is already on or off. I'd love to know if it can be done in both VEX and Python, but I can use either.

I am curious generally, but for my specific case, I am trying to set a switch (mySwitch) reliant on the state of the display flag on a specific node (myNode). mySwitch and myNode are in different paths ('/obj/geo1/myNode' and '/obj/geo2/mySwitch').

If the display flag is ON on mynode, I want mySwitch to use input 1, and if the display flag is set to any other node besides mynode, I want mySwitch to use input 0 of the switch.
User Avatar
Member
355 posts
Joined: Nov. 2013
Offline
I think you want hou.SopNode.isDisplayFlagSet()
see https://www.sidefx.com/docs/houdini/hom/hou/SopNode.html [www.sidefx.com]
Edited by antc - Sept. 11, 2024 10:08:40
  • Quick Links