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.
how to get all 'opencl' parameter in my hip
901 2 1- JMoon
- Member
- 9 posts
- Joined: May 2015
- Offline
- tamte
- Member
- 8539 posts
- Joined: July 2007
- Online
Jonghwan Moonnot sure why you would pose such limitation, but in case you allow looping here is a python way
…without looping.
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
FX Supervisor
Method Studios, NY
- JMoon
- Member
- 9 posts
- Joined: May 2015
- Offline
-
- Quick Links