Using a `details... expr in the filepath arg of a FILE node?

   871   3   1
User Avatar
Member
14 posts
Joined: Feb. 2019
Offline
Hi,

I am trying to construct a unique file name in a FILE node which incorporates the ITERATION number from a FOR - EACH Count loop.

To do this, I have a `details... arg in the path. The string in the 'Geometry File' parameter of the FILE node is: -

E:/Iron Age Project/Terrain/LandscapePatch_`details("../foreach_count1/", "iteration")`.fbx

The file does get written, but without the iteration number. Really don't understand why.

Any help really welcome as now driving me a bit crazy.

This is the loop construct....



Thanks,

Shaun

Attachments:
Houdini.png (55.3 KB)

User Avatar
Member
82 posts
Joined: June 2020
Offline
Probably because "iteration" isn't a string but an int. Try just using detail() or see if there's an expression function to convert int to string.
User Avatar
Member
130 posts
Joined: Jan. 2015
Offline
Been fighting that expression multiple times before.

This one should work.

E:/Iron Age Project/Terrain/LandscapePatch_`detail("../foreach_count1/", "iteration", 0)`.fbx

Edit: Dam, I was to slow.
Edited by Heileif - Sept. 1, 2023 12:18:36
User Avatar
Member
14 posts
Joined: Feb. 2019
Offline
Thanks guys, really appreciated Worked perfectly!
  • Quick Links