Drughi Posted November 28, 2018 Share Posted November 28, 2018 (edited) Hi! I want to share a little shelf tool script wich is pressing the Reset Simulation Button for you while beeing in a Dopnet or Solver. I found it to be very useful. Hope it is helpful to someone. If you have suggestions on doing it in a cleaner, better way - let me know. I'm still learning Python. Cheers! #Resim by Johannes Heintz import os path = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor,0).pwd().path() test = 0 while test < 10: test += 1 node = hou.node(path) if node.parm("resimulate"): test = 10 button = path + "/resimulate" hou.parm(button).pressButton() print "WORKED" else: path = os.path.dirname(path) Edited November 28, 2018 by Drughi 1 Quote Link to comment Share on other sites More sharing options...
3dome Posted November 29, 2018 Share Posted November 29, 2018 (edited) here's another way hou.currentDopNet().parm('resimulate').pressButton() Edited November 29, 2018 by 3dome 1 Quote Link to comment Share on other sites More sharing options...
Drughi Posted November 29, 2018 Author Share Posted November 29, 2018 Ah cool! Thanks. Didn't know this function. Good to know, but good for dops only. Quote Link to comment Share on other sites More sharing options...
3dome Posted November 29, 2018 Share Posted November 29, 2018 3 hours ago, Drughi said: Ah cool! Thanks. Didn't know this function. Good to know, but good for dops only. which is interesting since a solver is a dopnet + bottom right it is selected as the current one. maybe a bug? RFE it? Quote Link to comment Share on other sites More sharing options...
Jesper Rahlff Posted November 29, 2018 Share Posted November 29, 2018 you can also press P in the scene view and it will bring up a parameter window displaying the top level parameters of the dopnet. Then just press reset simulation 1 Quote Link to comment Share on other sites More sharing options...
Drughi Posted November 30, 2018 Author Share Posted November 30, 2018 11 hours ago, Jesper Rahlff said: you can also press P in the scene view and it will bring up a parameter window displaying the top level parameters of the dopnet. Then just press reset simulation Nice! But it seems this also doesn't work with sop solvers. Quote Link to comment Share on other sites More sharing options...
Jesper Rahlff Posted December 3, 2018 Share Posted December 3, 2018 On 11/30/2018 at 1:29 AM, Drughi said: Nice! But it seems this also doesn't work with sop solvers. yeah unfortunately it does not work with sop solvers, which one can wonder about.. 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.