I tried to use the hip cpio expand feature to distribute multiple node parameters to files without opening them, however it fails on hcollapse. Is it just the contents maniphest problem? Is it even possible?
More documentation on this topic would be more than welcome. Also how it pertains to different Houdni versions (Indie).
expand/hcollapse limitations?
5593 16 1- el_diablo
- Member
- 133 posts
- Joined: July 2005
- Offline
- el_diablo
- Member
- 133 posts
- Joined: July 2005
- Offline
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
- el_diablo
- Member
- 133 posts
- Joined: July 2005
- Offline
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
Which version of Houdini are you trying this with? I just tried it in a simple scene with only a box in it, and it seems to work. I did this:
$ hexpand foo.hip
84 blocks
table of contents for foo.hip stored in foo.hip.contents
84 blocks
foo.hip expanded into the directory foo.hip.dir
$ rm -f foo.hip
$ hcollapse foo.hip
collapsed foo.hip.dir into foo.hip
I used the latest 14.0.
$ hexpand foo.hip
84 blocks
table of contents for foo.hip stored in foo.hip.contents
84 blocks
foo.hip expanded into the directory foo.hip.dir
$ rm -f foo.hip
$ hcollapse foo.hip
collapsed foo.hip.dir into foo.hip
I used the latest 14.0.
Edited by - Sept. 24, 2015 09:44:26
Andrew / アンドリュー
- el_diablo
- Member
- 133 posts
- Joined: July 2005
- Offline
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
Yeah, I was able to open up the file in Houdini with no errors at all. I tried this on both Linux and OS X. This is basically what I tried:
# Generate the hip file
rm -f foo.hip
hbatch -c “cd /obj; opadd geo; mwrite foo.hip; quit”
# hexpand/hcollapse
rm -fr foo.hip.*
hexpand foo.hip
rm -f foo.hip
hcollapse foo.hip
# Load the hip file
hbatch -c “mread foo.hip; ls; quit;”
Can you attach the hip file that you generated? Maybe that'll give a hint to the problem…
# Generate the hip file
rm -f foo.hip
hbatch -c “cd /obj; opadd geo; mwrite foo.hip; quit”
# hexpand/hcollapse
rm -fr foo.hip.*
hexpand foo.hip
rm -f foo.hip
hcollapse foo.hip
# Load the hip file
hbatch -c “mread foo.hip; ls; quit;”
Can you attach the hip file that you generated? Maybe that'll give a hint to the problem…
Edited by - Sept. 30, 2015 11:35:09
Andrew / アンドリュー
- el_diablo
- Member
- 133 posts
- Joined: July 2005
- Offline
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
- el_diablo
- Member
- 133 posts
- Joined: July 2005
- Offline
Sorry for delay in the reply, was busy on a project.
hbatch -c “mread foo.hip; ls; quit;”
hbatch Version 14.0.441 (Compiled on Aug 31 2015)
Error loading: foo.hip
Error: Bad header in CPIO packet ().
Bad header in CPIO packet ().
Invalid .hip file header
Unknown command: ls
foo.hip.zip is generated by hbatch, foo-result.hip.zip is the result of hexpand->hcollapse.
Houdini 14.0.441, CentOS Linux release 7.1.1503
hbatch -c “mread foo.hip; ls; quit;”
hbatch Version 14.0.441 (Compiled on Aug 31 2015)
Error loading: foo.hip
Error: Bad header in CPIO packet ().
Bad header in CPIO packet ().
Invalid .hip file header
Unknown command: ls
foo.hip.zip is generated by hbatch, foo-result.hip.zip is the result of hexpand->hcollapse.
Houdini 14.0.441, CentOS Linux release 7.1.1503
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
I just tried Houini 14.0.441 (gcc4.4) on CentOS 7.1.1503, and I can't reproduce the issue. This is really strange…
Can you try running these commands? You'll need to setup the usual Houdini environment. It'll generate a “foo.hcpio” file. Can you post that file?
$ echo “hello world” > foo.txt
$ echo foo.txt | hcpio -o -O foo.hcpio -H odc
Can you try running these commands? You'll need to setup the usual Houdini environment. It'll generate a “foo.hcpio” file. Can you post that file?
$ echo “hello world” > foo.txt
$ echo foo.txt | hcpio -o -O foo.hcpio -H odc
Andrew / アンドリュー
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
Oh, can you also run this command, and post the output?
stat foo.txt
You should see an output like:
hello world
File: ‘foo.txt’
Size: 4 Blocks: 8 IO Block: 4096 regular file
Device: fd00h/64768d Inode: 205317290 Links: 1
Access: (0664/-rw-rw-r–) Uid: ( 1000/ andrew) Gid: ( 1000/ andrew)
Context: unconfined_ubject_r:user_tmp_t:s0
Access: 2015-09-30 12:06:49.312734647 -0400
Modify: 2015-09-30 12:06:49.312734647 -0400
Change: 2015-09-30 12:06:49.312734647 -0400
Birth: -
stat foo.txt
You should see an output like:
hello world
File: ‘foo.txt’
Size: 4 Blocks: 8 IO Block: 4096 regular file
Device: fd00h/64768d Inode: 205317290 Links: 1
Access: (0664/-rw-rw-r–) Uid: ( 1000/ andrew) Gid: ( 1000/ andrew)
Context: unconfined_ubject_r:user_tmp_t:s0
Access: 2015-09-30 12:06:49.312734647 -0400
Modify: 2015-09-30 12:06:49.312734647 -0400
Change: 2015-09-30 12:06:49.312734647 -0400
Birth: -
Andrew / アンドリュー
- el_diablo
- Member
- 133 posts
- Joined: July 2005
- Offline
This I get back from stat
File: ‘foo.txt’
Size: 12 Blocks: 8 IO Block: 4096 regular file
Device: fd02h/64770d Inode: 134459845 Links: 1
Access: (0666/-rw-rw-rw-) Uid: (16777218/user)
Gid: (16777216\domain users)
Context: unconfined_ubject_r:user_home_t:s0
Access: 2015-09-30 19:06:33.480448865 +0200
Modify: 2015-09-30 19:06:18.714266400 +0200
Change: 2015-09-30 19:06:18.714266400 +0200
Birth: -
BTW, thanks for your help!
File: ‘foo.txt’
Size: 12 Blocks: 8 IO Block: 4096 regular file
Device: fd02h/64770d Inode: 134459845 Links: 1
Access: (0666/-rw-rw-rw-) Uid: (16777218/user)
Gid: (16777216\domain users)
Context: unconfined_ubject_r:user_home_t:s0
Access: 2015-09-30 19:06:33.480448865 +0200
Modify: 2015-09-30 19:06:18.714266400 +0200
Change: 2015-09-30 19:06:18.714266400 +0200
Birth: -
BTW, thanks for your help!
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
- el_diablo
- Member
- 133 posts
- Joined: July 2005
- Offline
-
- Quick Links