HQueue not executing python pre render script

   1453   1   0
User Avatar
Member
26 posts
Joined: March 2014
Offline
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 ?
User Avatar
Member
41 posts
Joined: Sept. 2016
Offline
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.
  • Quick Links