File “hou.session”, line 9, in <module> NameError: name ‘hou’ is not defined
with the following script entered in the Python Source Editor?
defset_opencl(parent_node,parm_value):fornodeinparent_node.allSubChildren():forpinnode.parms():ifp.name()=='opencl':try:p.set(parm_value)excepthou.PermissionError:#this handles the case that the parm is inside of a locked .otlpasshou.session.set_opencl(hou.node('/obj/sim'),1);