Jim Bachalo

eco_bach

About Me

Expertise
Not Specified
Location
Not Specified
Website

Connect

Recent Forum Posts

Session module > AttributeError: 'NoneType' object has no attribute foo April 23, 2017, 11:19 a.m.

Trying to enable OpenCL globally by editing the session module. This is my exact implementation

import hou;
def set_opencl(parent_node, parm_value):
    for node in parent_node.allSubChildren():
        for p in node.parms():
            if p.name()=='opencl':
                try:
                    p.set(parm_value)
                except hou.PermissionError: #this handles the case that the parm is inside of a locked .otl
                    pass
hou.session.set_opencl(hou.node('/obj/dopnet1'), 1);

But get the following error message. have googled but no solution so far. Can any Python experts help?
The attempted operation failed.
Traceback (most recent call last):
File “hou.session”, line 10, in <module>
File “hou.session”, line 2, in set_opencl
AttributeError: ‘NoneType’ object has no attribute ‘allSubChildren’

noob Import fbx for PolyRedcue March 19, 2017, 5:20 p.m.

ok so I need to be at geo level in order to use PolyReduce, but whenever I import an FBX, I'm at the root level.

How do I get or access an FBX at the geo level?

H16, Linux and Nvidia drivers Feb. 24, 2017, 8:15 p.m.

just a heads up

Spent a couple days troubleshooting, without luck, even with SESI's patient support to get H16 to launch.

Running latest Ubuntu with latest Nvidia drivers 378.13

Solved the issue. Downgraded my Nvidia driver to 375.39

arrrgh Nvidia drivers!!!