Alternative for $HOME in Packages ?
1856 11 3- _Christopher_
- Member
- 767 posts
- Joined: April 2014
- Offline
- mabelzile
- Staff
- 411 posts
- Joined: Feb. 2018
- Offline
You don't have to set $HOME to use packages, Houdini supports multiple directory locations [www.sidefx.com] for placing your package file
- _Christopher_
- Member
- 767 posts
- Joined: April 2014
- Offline
- mabelzile
- Staff
- 411 posts
- Joined: Feb. 2018
- Offline
The simplest setup is to add your package file under $HOUDINI_USER_PREF_DIR/packages. If you want to redirect the package loading to a different location where Houdini could pickup a different package file, set the `package_path` keyword in your package file with the directory path containing the package file.
- _Christopher_
- Member
- 767 posts
- Joined: April 2014
- Offline
mabelzile
The simplest setup is to add your package file under $HOUDINI_USER_PREF_DIR/packages. If you want to redirect the package loading to a different location where Houdini could pickup a different package file, set the `package_path` keyword in your package file with the directory path containing the package file.
You still need an environment variable; in this case $HOUDINI_USER_PREF_DIR.
【T】【C】【S】
- ajz3d
- Member
- 478 posts
- Joined: Aug. 2014
- Offline
$HOUDINI_USER_PREF_DIR is where your user preferences are. It defaults to
Dive into that path, create and configure a new package [www.sidefx.com] in
$HOME/houdini19.5
, if not explicitly set, so you don't need to create it.Dive into that path, create and configure a new package [www.sidefx.com] in
packages
subdirectory. With package's .json
file you can modify environment variables to your liking.
- _Christopher_
- Member
- 767 posts
- Joined: April 2014
- Offline
$HOME I don't need to set; but $HOUDINI_USER_PREF_DIR as an environment variable still must be set. There could be something I'm not understanding, but Houdini will need to find the JSON file to read the packages file.
I doubt that no environment variable must be set; if I'm wrong, this is what I'm not understanding ?
I doubt that no environment variable must be set; if I'm wrong, this is what I'm not understanding ?
【T】【C】【S】
- mabelzile
- Staff
- 411 posts
- Joined: Feb. 2018
- Offline
- _Christopher_
- Member
- 767 posts
- Joined: April 2014
- Offline
- mabelzile
- Staff
- 411 posts
- Joined: Feb. 2018
- Offline
- _Christopher_
- Member
- 767 posts
- Joined: April 2014
- Offline
mabelzile
Yu can set HOUDINI_PACKAGE_VERBOSE=1 before running Houdini to see if something is wrong when loading your packages.
The Houdini package log is correctly reading a custom package file. What environment variable must be set if any; or just the HOUDINI_USER_PREF_DIR environment variable ?
【T】【C】【S】
- mabelzile
- Staff
- 411 posts
- Joined: Feb. 2018
- Offline
If you need to set HOUDINI_USER_PREF_DIR with a custom path, follow the directives in the documentation [www.sidefx.com]
HOUDINI_USER_PREF_DIR The directory to store user preference files. The value of this variable must include the substring __HVER__, which will be replaced at run time with the current MAJOR.MINOR version string. On Windows and Linux, this defaults to the expanded value of $HOME/houdini__HVER__. On Mac OSX, it will also use this default if the directory exists, else it uses the expanded value of $HOME/Library/Preferences/houdini/__HVER__.
-
- Quick Links