Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # folder callback
- kwargs['node'].hdaModule().tabSetChanged(kwargs['node'], kwargs['script_value0'])
- # functions in pythonModule
- def tabSetChanged(n, index):
- switch_name = 'switch_vis'
- setSwitch(n, switch_name, index)
- def setSwitch(n, name, index):
- switch = hou.node(n.path() + '/' + name)
- switch.parm('input').set(index)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement