zach du Toit
artiszin
About Me
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Button Strip parmTemplate Jan. 7, 2024, 10:40 a.m.
I know this is a really old post - had a similar problem so just thought I'd reply for other people who struggle with a similar thing.
I created a button on my shelf where you can enter a parm name and it kicks out the parm as code - which is a massive help.
This is what is kicks out for an example two button strip.
<hou.MenuParmTemplate name='slapcomp_switcher' label='Slapcomp switcher' menu_items
'0', '1') menu_labels
' Template Slapcomp ', ' Shot Slapcomp ') default_value=0 tags={ "export_disable" : "1", "script_
callback" : "exec(hou.parm("set_template").eval() )", "script_callback_language" : "python", } is_button_strip=1 strip_uses_icons=0>
I created a button on my shelf where you can enter a parm name and it kicks out the parm as code - which is a massive help.
This is what is kicks out for an example two button strip.
<hou.MenuParmTemplate name='slapcomp_switcher' label='Slapcomp switcher' menu_items
'0', '1') menu_labels
' Template Slapcomp ', ' Shot Slapcomp ') default_value=0 tags={ "export_disable" : "1", "script_callback" : "exec(hou.parm("set_template").eval() )", "script_callback_language" : "python", } is_button_strip=1 strip_uses_icons=0>