Search - User list
Full Version: multiple startup scripts
Root » Technical Discussion » multiple startup scripts
deecue
Hi all,

Is there a way for Houdini to scan and cat multiple 123/456 scripts?

For example, have a studio wide script in HOUDINI_PATH and an artist level script in their ~/houdini11.0/scripts? But still retain both. Or maybe just sequentially include one and then the other.

Any help is greatly appreciated!

Thanks,
dave
graham
From the first script that is run you could execute a source command to manually source your other script.
deecue
Ahh, of course.. Many thanks Graham.. That'll work just fine.
Antoine Durr
graham
From the first script that is run you could execute a source command to manually source your other script.
It's a bit trickier than that, as you want to make sure that your environment is consistent, i.e. that all appropriate scripts get read, regardless of whether they are present. Ergo daisy chaining scripts doesn't work really well.

One solution is to write a wrapper to launch Houdini which effectively does:

houdini myFile.hip /path/to/setup.script

And then the setup.script looks at the HOUDINI_PATH, reverses the order, and then looks in each location for a 123/456 or some other named script. If it finds it, it runs it; repeat for all remaining locations in the HOUDINI_PATH.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB