Hi!
I have the following issue:
I have a for loop that iterates over my geometry pieces.
each piece, I'd like to export to an obj file with a file node.
now I'd like to use the increment ('piece ID') in the file name.
how do I do this?
any input welcome!
m.
use for loop increment in file name
6065 5 1-
- deadalvs
- Member
- 196 posts
- Joined: Aug. 2011
- Offline
-
- Subtle 1rony
- Member
- 23 posts
- Joined: April 2016
- Offline
Not totally sure if this is what you're looking for, but there's an iteration attribute in the metadata node. It holds the value of each iteration of the for loop. You could append that to the file export name. In the first node of the for loop there is a button “Create Meta Import Node” that creates it.
Then in the file node output path you can use the detail expression to access the current iteration. I believe it has to be contained inside of back ticks to work. Something like
Then in the file node output path you can use the detail expression to access the current iteration. I believe it has to be contained inside of back ticks to work. Something like
detail('../foreach_begin1_metadata1', 'iteration',0)
-
- deadalvs
- Member
- 196 posts
- Joined: Aug. 2011
- Offline
-
- harireka
- Member
- 2 posts
- Joined: April 2016
- Offline
Hello,
I tried out the detail expression, and also the detail... not working for me. I have the iteration metadata.
I saw the message: the geometry is cooking and saving one by one, but the same file was always overwritten. The name of the file is not changing. I used details expression inside FIle-node, the Geometry File path was:
FOLDER/filename`details("../foreach_zzcount/","iterations")`
or
FOLDER/filename`detail("../foreach_zzcount/","iterations",1)`
So I just wanted to use the iteration metadata for counting in the file name. Is there another special character needed in the file name?
I use Houdini 19.0
Thanks
I tried out the detail expression, and also the detail... not working for me. I have the iteration metadata.
I saw the message: the geometry is cooking and saving one by one, but the same file was always overwritten. The name of the file is not changing. I used details expression inside FIle-node, the Geometry File path was:
FOLDER/filename`details("../foreach_zzcount/","iterations")`
or
FOLDER/filename`detail("../foreach_zzcount/","iterations",1)`
So I just wanted to use the iteration metadata for counting in the file name. Is there another special character needed in the file name?
I use Houdini 19.0
Thanks
-
- animatrix_
- Member
- 5100 posts
- Joined: Feb. 2012
- Offline
Hi,
It should be:
It should be:
filename`detail("../foreach_zzcount/","iteration",0)`
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
-
- harireka
- Member
- 2 posts
- Joined: April 2016
- Offline
I got an error message> unable to write filename0.fbx
I think it is something about packed vs. unpacked primitives. So I use ROP FBX out node with python "batch list".
It seems working https://www.artstation.com/blogs/b00merang/Mgrq/basic-houdini-1-batch-exports-with-for-loops [www.artstation.com]
I think it is something about packed vs. unpacked primitives. So I use ROP FBX out node with python "batch list".
It seems working https://www.artstation.com/blogs/b00merang/Mgrq/basic-houdini-1-batch-exports-with-for-loops [www.artstation.com]
-
- Quick Links



