I am currently building a larger hda, but ran into an issue when I am trying to do some geometry processing and python is called.
I first noticed it with the group_expression sop.
I am able to load the hda in Maya 2018.3, Houdini Version 18.0.377, Houdini engine version: 3.3 (API: 2).
But as soon as I included the group_expression sop, the asset would throw an error:
// Error: Object (ID: 0): /obj/test_engine_simple1 Geo (ID: 14): /obj/test_engine_simple1/geo_OUT/output0 No geometry generated! //
Also the very first time I load the asset I get:
// Error: HAPI Error: Error setting kwargs: Traceback (most recent call last): File "opdef:/Sop/groupexpression?PythonModule", line 1, in
NameError: name 'hou' is not defined
So I looked around a bit and this seems to happen when:
is not added to a python script.
The group expression sop internally seems to be doing some python script, so that is probably why it fails.
I then tried it with a python sop to confirm that this is the issue. I picked the preset to ‘move points up’ and at the beginning of that blurp of code I added:
But that did not help.
So now I'm thinking that houdini engine is unable to find ‘hou’. So that would mean that there is something wrong in the configuration of my Houdini engine installation.
Any advice to help find out where this is going wrong? I'm on Windows 10.
I have attached my simple test otl.
It requires an polygonal input (like a poly sphere) as an input.
- it will subdivide it
- it will rotate it around centroid
- it will try to move the points with a python sop (this is where the asset fails in Maya)