Jump to content
garf

HOUDINI_USER_PREF_DIR

Recommended Posts

Afternoon all,

I've come across this a problem a few times and never managed to get my head around it properly. Hopefully someone can give me a better understanding of how to do this.

Ideally I'd like to have a collection/package of otls, scripts/modules, icons etc that equate to a toolset. I would like to be able to keep these separated from the houdini install and user prefs and just be able to 'plug them in' to houdini - ideally only changing a line or two in the houdini.env file.

 

If I put all the bits and bobs in the correct locations in 'C:/users/garf/MyDocuments/houdini16.0' then it all works fine - it picks up the modules, connects the icons etc

'C:/Users/garf/Documents/houdini16.0/python2.7libs'

'C:/Users/garf/Documents/houdini16.0/config/Icons'

'C:/Users/garf/Documents/houdini16.0/shelves'

 

However I want these to be in a separate package somewhere like this:

'C:/users/garf/Documents/MyExtraToolSet/houdini16.0/python2.7libs'

'C:/users/garf/Documents/MyExtraToolSet/houdini16.0/config/Icons'

'C:/users/garf/Documents/MyExtraToolSet/houdini16.0/shelves'

in addition

 

I've tried changing my HOUDINI_USER_PREF_DIR variable with the houdini.env file

HOUDINI_USER_PREF_DIR=C:/users/garf/Documents/MyExtraToolSet/houdini__HVER__

but when I hconfig HOUDINI_USER_PREF_DIR in the shell, it still says 'C:/Users/garf/Documents/houdini16.0/' and nothing links up

 

Any pointers appreciated.

Cheers

Share this post


Link to post
Share on other sites

I don't think you want to change your PREFs folder. That one is a important one

 

What I think you want is what the Game Development Tools or QLib does and append your library paths to the default ones. If you read the documentation it'll say most tools search the HOUDINI_PATH in order to grab the relevant stuff. So, in theory, if you define the HOUDINI_PATH in your houdini.env as something like

 

HOUDINI_PATH = " C:/users/garf/Documents/MyExtraToolSet;&" 

 

It should work, as long as you have an HDA, a script etc folders inside that path

Personally I prefer to define the paths specifically, so it would be something like
 

HOUDINI_OTLSCAN_PATH = "C:/users/garf/Documents/MyExtraToolSet/hda;&"

HOUDINI_SCRIPT_PATH = "C:/users/garf/Documents/MyExtraToolSet/scripts;&"

 

etc

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Hi Vitor,

 

HOUDINI_PATH = " C:/users/garf/Documents/MyExtraToolSet;&"

This works - thanks.
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×