TomRaynor Posted December 10, 2012 Share Posted December 10, 2012 I am getting to a stage where I have a tonne of otls in my "houdini12/otl" directory and I would quite like to have sub-folders inside my "otl" folder which keep all otl's of a specific type or specific purpose in the same place (so for each job I work on I can keep all of the otls that I make for that job in a sub-folder called the name of the job). Currently if I just start putting otls inside folders within my "houdini/otl" directory, houdini no longer picks them up. What I want to know is how to add those sub-folders to the otl path so that they are picked up by houdini on start up. In nuke I would use the python file that gets run on nuke start up and do something like: nuke.pluginAddPath('./gizmos') nuke.pluginAddPath('./python') nuke.pluginAddPath('./icons') Can someone shed some light on how I might do this for Houdini? Cheers! Quote Link to comment Share on other sites More sharing options...
michael Posted December 10, 2012 Share Posted December 10, 2012 have a look at the env variable HOUDINI_OTLSCAN_PATH Quote Link to comment Share on other sites More sharing options...
dpap Posted December 20, 2013 Share Posted December 20, 2013 Yes..but how can I change the env variable HOUDINI_OTLSCAN_PATH ? I edited the .env file in my user home directory like this # # Houdini Environment Settings # # The contents of this file are read into the environment # at startup. They will override any existing entries in # the environment. # # The syntax is one entry per line as follows: # VAR = VALUE # # Values may be quoted # VAR = "VALUE" # # Values may be empty # VAR = # # Example: # # HOUDINI_NO_SPLASH = 1 HOUDINI_OTLSCAN_PATH=D:\Houdini\OTL\my_OTLs.otl but it didnt work.. What I am doing wrong? And is there a way to add more than one paths? For example can I keep the default path and add a couple of my own as well? Thanks! Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted December 20, 2013 Share Posted December 20, 2013 Use "" and end each path with ; .Example: HOUDINI_OTLSCAN_PATH = "$HFS/houdini/otls;$DROPBOX_PATH/Programs/Houdini/home/otls/H13.0;" 1 Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted December 20, 2013 Share Posted December 20, 2013 Oh yeah, remember that if you override some variable, you need to add its data to your. For example "HOUDINI_OTLSCAN_PATH" by default points to "$HFS/houdini/otls" and I think to "$HOME\houdini13.0\otls". Once you override variable those paths are not there anymore, so you need to add them in your env file. Launch Houdini Command Line Tools and then: hconfig -all Look at variables that you want to override. If they contains some paths there, copy and paste them into your env too. Quote Link to comment Share on other sites More sharing options...
dpap Posted December 20, 2013 Share Posted December 20, 2013 (edited) this doesnot work: HOUDINI_OTLSCAN_PATH="$HFS/houdini/otls;E:\WORK\Houdini\OTL\my_OTLs.otl;" ------------------------------------------------------------------------------------------------------------------------------- Ok! got it! Thanks a lot Mantragora!!! Edited December 20, 2013 by dpap Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted December 20, 2013 Share Posted December 20, 2013 (edited) Why you are adding "my_OTLs.otl" in your path? x_X And change all "\" to "/". DIARY: Note to myself: Always use quotes of the post you are responding to, because user can edit the post and your answer could end up making no sense anymore. Edited December 20, 2013 by mantragora 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.