Jump to content

Why no 'global' 'Enable OpenCL' switch?


Recommended Posts

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 by art3mis
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...