Jump to content

Tidy otl folder


TomRaynor

Recommended Posts

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!

Link to comment
Share on other sites

  • 1 year later...

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!

Link to comment
Share on other sites

Guest mantragora

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.
Link to comment
Share on other sites

this doesnot work:       HOUDINI_OTLSCAN_PATH="$HFS/houdini/otls;E:\WORK\Houdini\OTL\my_OTLs.otl;"
 

-------------------------------------------------------------------------------------------------------------------------------

 

Ok! got it! Thanks a lot Mantragora!!!

Edited by dpap
Link to comment
Share on other sites

Guest mantragora

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 by mantragora
  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...