Hide HDA from Tab Menu

   3595   2   2
User Avatar
Member
5 posts
Joined: Jan. 2012
Offline
Hi,

I'm working on updating HDAs to have a consistent naming convention. I am leaving the previous assets so that old hip files don't break, however that causes both the new and old assets to appear in the tab menu. Because there will be so many, I'd rather not have to add “setHidden” calls for each to a 123.py.

I've been able to have them hidden by setting the contents of the “Tools.shelf” section of the HDA to an empty string. It seems like it can then be reversed by copying the contents from the new asset back to the older, hidden one. This way seems to be working but I'm not sure if it's really best practice.

Is there a better way to permanently hide HDAs from the tab menu other than the adding “setHidden” calls to 123.py?

Thanks!
FX TD - The Mill, Los Angeles, CA
User Avatar
Member
8184 posts
Joined: Sept. 2011
Offline
put ophide commands in OPCustomize or pythonrc.py
User Avatar
Member
5 posts
Joined: Jan. 2012
Offline
Easy enough, thanks JMack! :n)
FX TD - The Mill, Los Angeles, CA
  • Quick Links