Houdini File system
9271 7 2- alves_mauri
- Member
- 18 posts
- Joined: 1月 2008
- Offline
- Pagefan
- Member
- 519 posts
- Joined:
- Offline
When you start houdini it will pick up any environment variable that yopu have set (in the current shell). Some of these variables are (very) specific to houdini.
For example:
$HIP is the path to the current file you are working on in houdini. You can use this in expressions and scripts to reference a path relative to the current file (e.g. when using textures $HIP/textures/mytexture)
$JOB is not specific to houdini but can be used if you have a big project and have many subdirectories for textures, shaders, geometry and cached simulations. You can use this variable the same way as the $HIP variable.
$TEMP is a system wide variable on windows and linux. Almost all applications will use this variable to store scratch files, dumps after a crash and whatever. On windows this variable links to C:\windows\temp and on linux most likely to /tmp.
I hope this gives you a few clues.
Hans
For example:
$HIP is the path to the current file you are working on in houdini. You can use this in expressions and scripts to reference a path relative to the current file (e.g. when using textures $HIP/textures/mytexture)
$JOB is not specific to houdini but can be used if you have a big project and have many subdirectories for textures, shaders, geometry and cached simulations. You can use this variable the same way as the $HIP variable.
$TEMP is a system wide variable on windows and linux. Almost all applications will use this variable to store scratch files, dumps after a crash and whatever. On windows this variable links to C:\windows\temp and on linux most likely to /tmp.
I hope this gives you a few clues.
Hans
- alves_mauri
- Member
- 18 posts
- Joined: 1月 2008
- Offline
- Pagefan
- Member
- 519 posts
- Joined:
- Offline
Sorry, Houdini is definitely not a click-and-you-re-done application, the way you organize your directory structure depends on your project, on your companies workflow or whatever. You could make a template directory structure your self and then copy it when you start a new project, this will probably be easier than making a script.
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
alves_mauri
When I setup a project in Maya it create whole folder and sub-folder (Scene, Image, texture, etc)
yes, there is nothing like a directory structure that doesn't fit to anything in particular…
Imagine application that's lets you set-up paths up to your needs rather then imagination of its creators…
How about putting textures under conditional statement?, so you could write something like: background.rat instead of /mnt/PROJECT/shot/version/textures/background.rat
- so if Houdini finds background.rat in project folder, it will use it, otherwise it will use global background texture. Dozens possibilities.
Anyways, here you have a script for starting point: http://www.sidefx.com/exchange/info.php?fileid=480&versionid=480 [sidefx.com]
- lynbo
- Member
- 47 posts
- Joined: 7月 2005
- Offline
-File centric-
A quick way to get what you might want is
to open Houdini and immediately save the file into
a directory….like My “Best Project Ever”.
From that point your $HIP folder is “Best Project Ever”
and everything you need is put in that folder, Geo, images, textures or
whatever.
-Job Centric-
The other way is to be job centric and create the $JOB variable on your system and then that becomes where Houdini goes to look for thing first.
It is a little hard at first to wrap your head around,
but in the big picture it is flexible enough to setup any way you would want.
My personal method is the first, as its just me at home doing my own thing
and its real easy to use that way.
If you are at a studio, or have multiple people on a project you will need something more like the JOB centric way.
-Lyn-
A quick way to get what you might want is
to open Houdini and immediately save the file into
a directory….like My “Best Project Ever”.
From that point your $HIP folder is “Best Project Ever”
and everything you need is put in that folder, Geo, images, textures or
whatever.
-Job Centric-
The other way is to be job centric and create the $JOB variable on your system and then that becomes where Houdini goes to look for thing first.
It is a little hard at first to wrap your head around,
but in the big picture it is flexible enough to setup any way you would want.
My personal method is the first, as its just me at home doing my own thing
and its real easy to use that way.
If you are at a studio, or have multiple people on a project you will need something more like the JOB centric way.
-Lyn-
- goldfarb
- スタッフ
- 3464 posts
- Joined: 7月 2005
- Offline
- daslolo
- Member
- 7 posts
- Joined: 12月 2019
- Offline
-
- Quick Links