include an attribute value in a filename

   2185   3   1
User Avatar
Member
12 posts
Joined: Jan. 2018
Offline
Hi

I have a foreach loop which loops through each polygon of the input geometry. Each polygon has an attribute called primnum. Inside the loop i'm trying to output a file for each iteration of the loop and use the primnum attribute as part of the filename. Is this the correct syntax?

filename.$primnum.bgeo.sc

I'm getting one file named filename..bgeo.sc
User Avatar
Member
31 posts
Joined: Oct. 2017
Offline
I never know for sure…
try
fileman.`@primnum`.bgeo.sc
User Avatar
Member
12 posts
Joined: Jan. 2018
Offline
subscriptions
I never know for sure…
try
fileman.`@primnum`.bgeo.sc

doesnt do the trick unfortunately.
User Avatar
Member
12 posts
Joined: Jan. 2018
Offline
The trick was to click create meta import nod in the foreach begin node, and then plug that into a spare input on the file node, so I could access the detail iterations attribute.
  • Quick Links