Search - User list
Full Version: Set Flags outside of NetworkEditor?
Root » Houdini Indie and Apprentice » Set Flags outside of NetworkEditor?
phonebreaker
Hi Folks,

Is it possible to use the hotkey E (Set Secondary Flag) and R (Set Third Flag), while the cursor is in Parameter Editor?

In the Hotkey Manager its under: Houdini/Panes/Network Editor
phonebreaker
A:
-Go to Shelf Too
-RMB new tool in shelf
-jump inside the tool head to hotkeys tab and press edit in the global hotkeys


The code to put in the tool:

flag = hou.nodeFlag.Display # Change this to the flag you want to toggle

p= hou.ui.paneTabOfType(hou.paneTabType.Parm)
current_node = p.currentNode()
value = current_node.isGenericFlagSet(flag)
current_node.setGenericFlag(flag, not value)




////The current code does this for the display flag but you can make it for any other flag, just replace the first line with flag = ... by the flag you want (see the list here: http://www.sidefx.com/docs/houdini/hom/hou/nodeFlag.html)




Credits goes to Matthis Bozec. Thank you very much !
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB