Since hip files compress really well, I've been trying to come up with a hook that would allow you to open a zipped hip file, and have it automatically unzip it.
At first I thought the 123 or 456 scripts were the way to go, but being a total newbie, I was completely wrong about when they are invoked in the overall lifecycle.
So I was hoping someone could point me in the right direction.
I'm using houdini 8 on a redhat 4 system.
Thanks,
Jordan
How can I add support for unzip'ing hip files when opened
4152 8 3- jsoles
- Member
- 3 posts
- Joined: Dec. 2005
- Offline
- pbowmar
- Member
- 7025 posts
- Joined: July 2005
- Offline
You need to alias houdini to a small script. R+H does this, so if it detects a .gz suffix it will expand it automatically first.
Basically, the script would look for a .gz (or .zip if you prefer) suffix when you specify a .hip file on the command line, and if it detects it, it unzips it first, then runs houdini on the expanded one.
Slightly related, I've long been frustrated that SESI doesn't build GZ compression into the saving of .hip files, perhaps off by default. Touch 101 (based on Houdini) has this native, I believe. Usually a 90% file size savings.
Cheers,
Peter B
Basically, the script would look for a .gz (or .zip if you prefer) suffix when you specify a .hip file on the command line, and if it detects it, it unzips it first, then runs houdini on the expanded one.
Slightly related, I've long been frustrated that SESI doesn't build GZ compression into the saving of .hip files, perhaps off by default. Touch 101 (based on Houdini) has this native, I believe. Usually a 90% file size savings.
Cheers,
Peter B
- jsoles
- Member
- 3 posts
- Joined: Dec. 2005
- Offline
- pbowmar
- Member
- 7025 posts
- Joined: July 2005
- Offline
- JColdrick
- Member
- 4140 posts
- Joined: July 2005
- Offline
Should be trivial to implement as a cmd script, something along the lines of
unix ‘gunzip foobar.hip.gz’
mread foobar.hip
replacing foobar with a variable. However, the file requestor is missing from this equation so you'll need to get a little fancier to be able to use it in that manner. AFAIK the Houdini file requestor isn't “interruptable” - you can make an asset which has the result of a requestor as input, but that's getting ugly/busy.
I'm with you, Peter. I know the argument I heard was that hip's were basically cpio files, and they wanted to keep that integrity. However, I don't see why they can't append a ‘.gz’ to it and compress the cpio. Seems quite trivial to implement and philosophically is as acceptable as a ‘.cpio.gz’ file.
Cheers,
J.C.
unix ‘gunzip foobar.hip.gz’
mread foobar.hip
replacing foobar with a variable. However, the file requestor is missing from this equation so you'll need to get a little fancier to be able to use it in that manner. AFAIK the Houdini file requestor isn't “interruptable” - you can make an asset which has the result of a requestor as input, but that's getting ugly/busy.
I'm with you, Peter. I know the argument I heard was that hip's were basically cpio files, and they wanted to keep that integrity. However, I don't see why they can't append a ‘.gz’ to it and compress the cpio. Seems quite trivial to implement and philosophically is as acceptable as a ‘.cpio.gz’ file.
Cheers,
J.C.
John Coldrick
- jsoles
- Member
- 3 posts
- Joined: Dec. 2005
- Offline
- debris
- Member
- 26 posts
- Joined: Nov. 2008
- Offline
Oh my, I was searching for an easy way to save / load compressed hip-files and as a Houdini noob I tried adding “.sc” or “.gz” behind “.hiplc” (like it works when exporting geometry etc.) but of course this didn't work.
Then I found this very old thread that I'd like to revive.
I have a file that takes 371MB as a hip file but compresses to less than 6MB when zipped!!!
Now that Houdini supports the super fast BLOSC compression it's quite a shame that it still can't compress the contents of hip-files out-of-the-box.
Where can I submit this feature request so that a developer actually sees it?
Cheers
Steffen
Then I found this very old thread that I'd like to revive.
I have a file that takes 371MB as a hip file but compresses to less than 6MB when zipped!!!
Now that Houdini supports the super fast BLOSC compression it's quite a shame that it still can't compress the contents of hip-files out-of-the-box.
Where can I submit this feature request so that a developer actually sees it?
Cheers
Steffen
Ceterum censeo Autodesk esse delendam!
- goldfarb
- Staff
- 3455 posts
- Joined: July 2005
- Online
- debris
- Member
- 26 posts
- Joined: Nov. 2008
- Offline
-
- Quick Links