Jump to content

new for-each-lopp iteration


Recommended Posts

Hi, 

How do I get the current iteration inside the loop? Last time I used the loop there was a Each SOP and I used the stamp expression as an iteration. How can I do it now?

Link to comment
Share on other sites

I think current iteration number is stored as an index in block-begin (if you are in VOPs). In SOPs you have to create metadata (click Create meta import node on block begin).

Edited by davpe
Link to comment
Share on other sites

On 6.07.2016 at 9:39 PM, davpe said:

I think current iteration number is stored as an index in block-begin (if you are in VOPs). In SOPs you have to create metadata (click Create meta import node on block begin).

There is nothing in metadata. Its just duplicating the input to the loop.

 

On 6.07.2016 at 9:03 PM, kev2 said:

 

at ~18 min in. There's a masterclass on it out there too. - k

Hm...Tried to do the way he does it. I do have a name attrib. And when I change the gather method to  Feedback Each Iteration I get only one piece...

Link to comment
Share on other sites

When you create the meta data node it has on it a number of detail attributes containing loop information. You can then access them using a `detail()` expression for other functionality.

 

Cheers Jake

Link to comment
Share on other sites

Hi sorry but I dont get it :)  When I press create meta data the new node is created. Block Begin SOP. And it is the exact copy of the input Block Begin SOP. There are no parm on it exept 'method' and 'block path'. And the only difference between the original node and a copy is that the copy has the global path to Block Path. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...