There is any way to change the TAB Submenu Path via python??
I am sure there is, but I couldn't find it.
Thanks.
TAB Submenu Path
7519 9 3- ed_co
- Member
- 14 posts
- Joined: 7月 2013
- Offline
- ed_co
- Member
- 14 posts
- Joined: 7月 2013
- Offline
- rafal
- スタッフ
- 1449 posts
- Joined: 7月 2005
- Offline
Here is an excerpt from our bug database:
Yes, this can be done through HOM. The tools are defined as an XML file, which is stored in the “Tools.shelf” section of an HDA definition. The XML file format is documented here:
http://www.sidefx.com/docs/houdini14.0/shelf/config_file [sidefx.com]
For the Tab Submenu, you'd need to set the <toolSubmenu> tag.
You can add a new section by:
hda_definition = node.type().definition()
hda_definition.addSection(“Tools.shelf”, your_xml_string)
You could examine an existing section by:
tools_section = hda_definition.sections()
Also take a look at:
http://www.sidefx.com/docs/houdini14.0/hom/hou/HDADefinition [sidefx.com]
http://www.sidefx.com/docs/houdini14.0/hom/hou/HDASection [sidefx.com]
Yes, this can be done through HOM. The tools are defined as an XML file, which is stored in the “Tools.shelf” section of an HDA definition. The XML file format is documented here:
http://www.sidefx.com/docs/houdini14.0/shelf/config_file [sidefx.com]
For the Tab Submenu, you'd need to set the <toolSubmenu> tag.
You can add a new section by:
hda_definition = node.type().definition()
hda_definition.addSection(“Tools.shelf”, your_xml_string)
You could examine an existing section by:
tools_section = hda_definition.sections()
Also take a look at:
http://www.sidefx.com/docs/houdini14.0/hom/hou/HDADefinition [sidefx.com]
http://www.sidefx.com/docs/houdini14.0/hom/hou/HDASection [sidefx.com]
- ed_co
- Member
- 14 posts
- Joined: 7月 2013
- Offline
- Francois Devic
- Member
- 44 posts
- Joined: 7月 2017
- Offline
- jsmack
- Member
- 7805 posts
- Joined: 9月 2011
- Online
- Francois Devic
- Member
- 44 posts
- Joined: 7月 2017
- Offline
- Technically_Jim
- Member
- 11 posts
- Joined: 4月 2017
- Online
- tas3d
- Member
- 120 posts
- Joined: 1月 2012
- Offline
Take a look at VHDA from Labs. It's still XML, but their code looks clean enough to me.
Michal Tas Maciejewski @ www.vfxtricks.com
- Technically_Jim
- Member
- 11 posts
- Joined: 4月 2017
- Online
-
- Quick Links