Not saving env variables with scene?

   4023   2   3
User Avatar
Member
2 posts
Joined: May 2011
Offline
Hi!
How to use variables that set in houdini.env file, instead of the ones saved with scene?
For example I worked on scene, saved it, then changed $JOB variable in houdini.env. When I'm opening that scene it uses the $JOB variable that was saved with it, so I have to manually change it in “Aliases and Variables”.
User Avatar
Member
8555 posts
Joined: July 2007
Offline
create file named scripts/123.py in your houdini preference folder
and put this in
import hou
hou.allowEnvironmentToOverwriteVariable('JOB', True)
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
228 posts
Joined: Dec. 2012
Offline
Sorry to bring up the old topic, but I can't get this to work in the case where I double click on a .hip file to open Houdini. In that case, the $JOB variable doesn't use my system variable, it uses what's set in the .hip file.

I have tried making a 123.py 456.py and pythonrc.py file with the code mentioned above, but the system variable only gets used when I open a blank Houdini and then open the file.

I have referred here but haven't found this to work:
http://www.sidefx.com/docs/houdini13.0/hom/independent [sidefx.com]

Is this a bug?
www.kmcnamara.com
  • Quick Links