KenBee Posted March 3, 2021 Share Posted March 3, 2021 I am trying to create a HDA with a few pop and dop simulations that will need to be reset after the user change the seed, and wonder what is the way to link all the reset simulation buttons to 1 master button on the HDA interface? Quote Link to comment Share on other sites More sharing options...
bunker Posted March 3, 2021 Share Posted March 3, 2021 you can do that with Python pressButton() eg: hou.parm('/obj/geo1/mysop/mybutton').pressButton() 1 Quote Link to comment Share on other sites More sharing options...
KenBee Posted March 3, 2021 Author Share Posted March 3, 2021 I am able to make it work with 1 popnet in the callback script hou.parm('/obj/geo1/popnet/resimulate').pressButton() but how do I get popnet1 popnet2 popnet3... to also reset with a press of a button? Quote Link to comment Share on other sites More sharing options...
bunker Posted March 3, 2021 Share Posted March 3, 2021 you would that with an array and a for loop something like that: nodes=['nodepath1','nodepath2','nodepath3'] for node in nodes: hou.node(node).parm("resimulate").pressButton() 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.