Hello everyone,

Can anyone please help me figure out how to make Script node execute code from external files inside Houdini's current session? I am mainly interested in Python code. If I load a “filewithcode.py” in the Script node it gives me error. If I paste the code from the file directly into Script 1 file field of the Script node, it works fine. Is there anything I have to add to the code when reading it from the file?

The file contains Houdini specific Python code, which uses Houdini's hou module. I suspect, when executing the file, Script node does not load the code from the file inside of Houdini and run it in the current session but it tries to execute it externally. This is just my guess. Is it right?