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
9060 9 4-
- ed_co
- Member
- 14 posts
- Joined: 7月 2013
- オフライン
-
- ed_co
- Member
- 14 posts
- Joined: 7月 2013
- オフライン
-
- rafal
- スタッフ
- 1471 posts
- Joined: 7月 2005
- オフライン
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
- オフライン
-
- Francois Devic
- Member
- 44 posts
- Joined: 7月 2017
- オフライン
-
- jsmack
- Member
- 8173 posts
- Joined: 9月 2011
- オフライン
-
- Francois Devic
- Member
- 44 posts
- Joined: 7月 2017
- オフライン
-
- Technically_Jim
- Member
- 11 posts
- Joined: 4月 2017
- オフライン
-
- tas3d
- Member
- 120 posts
- Joined: 1月 2012
- オフライン
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
- オフライン
-
- Quick Links