検索 - User list
Full Version: HQueue not executing python pre render script
Root » Technical Discussion » HQueue not executing python pre render script
larkis
I have a simple pre render script in my output rop that pushes a button on a node elsewhere in the file. “hou.parm('/obj/collision_geo/collision/execute').pressButton()” is the code, and I have tried it with a semicolon at the end as well. The command works when I render the file using the background render or in the gui, or through a hython .bat file (i'm on windows). However when I submit via HQueue the command does not seem to run.

Is there something extra that needs to be done in order for this to work ?
dany27227
Ran into this same issue. One solution is to put the script directly in the command argument not in the script parameters. For karma: "husk --preframe-script $HQROOT/script.py"

It still has one issue. The $ variables get evaluated when generating USDs so this won't work in a multi OS setup.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB