how to get all 'opencl' parameter in my hip

   901   2   1
User Avatar
Member
9 posts
Joined: May 2015
Offline
hi there,
how to get all ‘opencl’ parameter using by all script(hscript, python or hdk) in my hip without looping.

I want to turn on/off all ‘opencl’ parameter.
User Avatar
Member
8539 posts
Joined: July 2007
Online
Jonghwan Moon
…without looping.
not sure why you would pose such limitation, but in case you allow looping here is a python way

import hou
import parmutils as pu

nodes = [node for node in hou.node("/").recursiveGlob('*') if not node.isInsideLockedHDA()]

openclparms = pu.collectParms(nodes, 'opencl')

for parm in openclparms:
    parm.set(1) ## turn opencl on
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
9 posts
Joined: May 2015
Offline
Thank you for your answer.
  • Quick Links