I'm writing function for Houdini polyReduce within Maya as part of an external application, and am running into this error: MayapyProcess.mayapy: ERROR: line 1: Cannot find procedure “AEhoudiniAssetSetInputToSelection”
This call works fine within Maya's console, and python (rather than mel.eval()) calls to Houdini Engine work externally – is there something I need to do to get this working in an external script?
I figured out the issue - the python environment was properly sourcing Houdini Engine, but the mel environment was not. Adding mel.eval(“source \”/path/to/houdini/engine/source\“”) allowed it to run properly.