Hiding nodes in tab menu?

   793   3   1
User Avatar
Member
433 posts
Joined: 4月 2018
Offline
How do I get the "official" names of nodes in order to hide them with ophide? For example, I guessed that ophide Object vrcam would hide the VR Camera, but stereocam doesn't work for Stereo Camera. Thanks!
Edited by BrianHanke - 2023年6月2日 08:58:37
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]

Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
User Avatar
Member
1906 posts
Joined: 11月 2006
Online
Annoyingly the "Stereo Camera" labeled tool is for Object/sterocamrig and the "Stereo Camera Template" tool is Object/stereocam.

The easiest way to find the offical name of a node (node type name) is by instantiating it and checking the MMB info:
.

You could also drag the node into a Python Shell and run the following:
>>> hou.node('/obj/stereocamrig1').type().name()
'stereocamrig'

You can also generally infer the name based on the node naming when you create one as it's usually the "{node type name}{some digit}".

All that being said, sometimes it's not easy/possible to hide things in the Tab Menu as they may be set up as macros to create one or mode nodes with certain settings and the tools aren't bound directly to an operator name so ophiding things won't work

Attachments:
Screenshot from 2023-06-02 09-23-00.png (50.5 KB)

Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
433 posts
Joined: 4月 2018
Offline
Great, thanks! Even if I can't get them all that should help tidy things up by removing some that I never use.

The Primitive/Point/etc Wrangle list remains annoying, as do all the Guide Process entries. I assume those are macros/hardcoded?
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]

Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
User Avatar
Member
1906 posts
Joined: 11月 2006
Online
Yeah, those ones look to be defined in specific .shelf files in $HH/toolbar so there's not much that can be done about them other than making copies of the tool definitions and trying to remove all their context settings to not show up.
Graham Thompson, Technical Artist @ Rockstar Games
  • Quick Links