I don't want to put everything in:
$HOUDINI_USER_PREF_DIR/vex/include
For example I have:
$HOME/HoudiniLibs/myLib/myLib.h
Now in a wrangle node I can write:
#include “$HOME/HoudiniLibs/myLib/myLib.h”
and that will work.
1.Is there a way to set it up so I can just write:
#include “myLib.h”
Without putting it in $HOUDINI_USER_PREF_DIR/vex/include
2.Is there a (non-intrusive) way to include myLib.h by default?
I guess I can already shorten it to
#include “$MY/myLib.h”
Via a custom environment variable. But that seems not ideal.
—–
I have tried using houdini.env and packages ( http://www.sidefx.com/docs/houdini/ref/plugins.html [www.sidefx.com] )
to add my script library to Houdini.
I tried adding
HOUDINI_VEX_PATH = $HOME/HoudiniLibs/myLib;&
to Houdini.env, but that didn't make a difference.
I also named the following script myLib.json and put in
$HOUDINI_USER_PREF_DIR/packages
"env": [ { "path" : "$HOME/HoudiniLibs/myLib" }, { "HOUDINI_VEX_PATH" : "$HOME/HoudiniLibs/myLib" } ]
On startup I get the following in the :
= = = Houdini Package log = = =
Processing ‘…/packages/myLib.json’
ERROR: Syntax error in ‘…/packages/myLib.json’
I don't see what I am doing wrong. Can somebody else tell?
I have a pythonrc script modifying houdini.env . Could that be causing this? It seems unrelated cause this points to a syntax error.