art3mis Posted August 25, 2018 Share Posted August 25, 2018 (edited) Anyone know why there is no 'global' 'Enable OpenCL' toggle on any of the Solver SOPs? ie I just layed down a popnet, then have to go inside the POP Solver and manually check almost every node for an 'Enable OpenCL' switch (there's about half a dozen or so) The Flip Solver has many, many more! Edited August 25, 2018 by art3mis Quote Link to comment Share on other sites More sharing options...
ikoon Posted August 26, 2018 Share Posted August 26, 2018 Hi Jim, you could unlock the "container" node, whose children you want to enable OpenCL, and then run similar python script as this one: container = hou.selectedNodes()[0] nodes = container.allSubChildren() for node in nodes: if not node.isInsideLockedHDA(): parms = node.parms() for parm in parms: if parm.name()=='opencl': try: parm.set(1) except hou.PermissionError: pass 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.