![]() ![]() HDA file, you should remove the scripts from older versions of the node!Īs always, please send me a message, if the link is broken or anything in the tutorial is unclear. This also means that if you have two or more versions of the same HDA in the same. ![]() Houdini will be confused and not know which script to actually use. Note that all of these manipulations can be done on the original tool and that you can add multiple tools to one HDA.ĭo not put the same Tab menu script (with the same name) into two different HDAs. Note that ‘DS::tab_menu_script_2::1.0’ is the name of one of my HDAs and $HDA_NAME is the name of the HDA that contains the script. tColor(hou.Color(1,0,0)) # And colorize it # Alternatively move node2 to any viable position tPosition(node_pos1 + hou.Vector2(3, 0) ) # Move node2 to position of node1 with relative offset Node2 = soptoolutils.genericTool(kwargs, 'DS::tab_menu_script_2::1.0', merge_context=True, nodename = 'node_2') # Create node2 on the same level as node1 and attach it to same parent ![]() Node1.parm('test').set(1) # Set one of its properties Node1 = soptoolutils.genericTool(kwargs, '$HDA_NAME', merge_context=True, nodename = 'node_1') Then your tool would show up in the folder “My Tools” in the TAB menu under the subfolder “tests”.Ĥ) Finally go to the Script tab and edit the script and confirm changes with Apply or Accept. You can even set a custom “ TAB Submenu Path” including subfolders. This Tab generally controls where the tool will show up. So in most cases you probably want to tick the SOP box. The name will be the (unique) name of your new tool and the Label will show up in the TAB menu.ģ) Go to the Context tab and make sure to check the box for whatever context you want the tool to show up in. Then navigate to “ Interactive” -> “ Shelf Tools” and from the drop-down “ Create New” menu, select “ Default Tool“.Ģ) Select the new entry in the Tools list and under “ Options” fill in the Name and Label as if you were making a new HDA. The following tutorial presumes you are familiar with the basics of HDA development in Houdini and have some understanding of Python.ġ) Go into the edit mode on an HDA and go to the Type Properties. This includes adding node presets to the menu without duplicating the node, putting down multiple nodes at once and more. This is a guide on how to add scripts to the TAB menu in Houdini. ![]()
0 Comments
Leave a Reply. |