Juzwa Posted July 6, 2016 Share Posted July 6, 2016 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? Quote Link to comment Share on other sites More sharing options...
kev2 Posted July 6, 2016 Share Posted July 6, 2016 (edited) at ~18 min in. There's a masterclass on it out there too. - k Edited July 6, 2016 by kev2 add info Quote Link to comment Share on other sites More sharing options...
davpe Posted July 6, 2016 Share Posted July 6, 2016 (edited) 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 July 6, 2016 by davpe Quote Link to comment Share on other sites More sharing options...
Juzwa Posted July 8, 2016 Author Share Posted July 8, 2016 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... Quote Link to comment Share on other sites More sharing options...
Malf Posted July 8, 2016 Share Posted July 8, 2016 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 Quote Link to comment Share on other sites More sharing options...
Juzwa Posted July 8, 2016 Author Share Posted July 8, 2016 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. Quote Link to comment Share on other sites More sharing options...
f1480187 Posted July 8, 2016 Share Posted July 8, 2016 (edited) It should create an empty geo with detail attributes you can refer to. Different loops may have different metadata attributes. metadata.hipnc Edited July 8, 2016 by f1480187 Quote Link to comment Share on other sites More sharing options...
Juzwa Posted July 8, 2016 Author Share Posted July 8, 2016 Ok you were right guys. I was expecting an exposed parameter but its actually 'hidden'. Had to middle click to find it. Thanks a lot! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.