Search the Community
Showing results for tags '123.py'.
Found 2 results
tielax11 posted a topic in General Houdini QuestionsWe are working in a Linux environment, and used to have our HOUDINI_USER_PREF_DIR located on in our /home/DOMAIN/USER/ folder on a per machine level. We just changed it so that each user has it now has it in their user folder on the network, where as before it was on that specific machine. This was done by changing the HOUDINI_USER_PREF_DIR in the 123.py script on startup using the following code. prefsPath = '/mnt/warehouse6/cask1/users/%s/%s%s' % ("USER", hou.applicationName(), ".".join(hou.applicationVersionString().split(".")[:-1])) hou.putenv("HOUDINI_USER_PREF_DIR", prefsPath) This somewhat works, we get a new user folder for each version on our network, located at /mnt/warehouse6/cask1/users/USER/, and it seems to use what is put in there. $HOUDINI_USER_PREF_DIR also returns the correct folder if you print it inside Houdini. However, the older default /home/DOMAIN/USER/ prefs folder is still being created and used when Houdini starts up, even though I am changing the prefs directory in the startup script. Is there something else that I need to change? I would think altering it in the 123.py would disregard the older default location that Houdini sets up.
It would be great to have a centralised official document on setting up Houdini in a production pipeline.. I am currently setting HOUDINI_PATH in houdini.env so that the whole studio can have access to OTLs, prefs, presets, toolbars etc Is it bad practice to append to HOUDINI_PATH? (some posts seem to suggest so..) I am using windows and I have mimicked the folder structure that is in My Documents\houdini##.# folder. I do have access otls that are stored within the otls folder however I can't seem to get the preferences working. My houdini.env is currently: HVER = 16 HOUDINI_PATH = S:/3D_globalSettings/houdini/$HVER;& I've added a hchannel.pref.nosave to the specified folder and i'm trying to set the start and end frame, i.e.: pref.frame_end := 1201; pref.frame_start := 1001; Is this the best approach or should I use hou.putenv in a 123.py for example?