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

   922   3   1
User Avatar
Member
14 posts
Joined: 2月 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
83 posts
Joined: 6月 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
136 posts
Joined: 1月 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 - 2023年9月1日 12:18:36
User Avatar
Member
14 posts
Joined: 2月 2019
Offline
Thanks guys, really appreciated Worked perfectly!
  • Quick Links