multiple startup scripts

   5367   3   1
User Avatar
Member
412 posts
Joined: 7月 2005
Offline
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
Dave Quirus
User Avatar
Member
1922 posts
Joined: 11月 2006
Online
From the first script that is run you could execute a source command to manually source your other script.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
412 posts
Joined: 7月 2005
Offline
Ahh, of course.. Many thanks Graham.. That'll work just fine.
Dave Quirus
User Avatar
Member
321 posts
Joined: 7月 2005
Offline
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.
Antoine Durr
Floq FX
antoine@floqfx.com
_________________
  • Quick Links