Jump to content
Sign in to follow this  
bretik

FOR EACH LOOP metadata

Recommended Posts

Posted (edited)

Hi there,

is there a way to have just last iteration of the for each loop? I mean the last "generation" ?

Im scattering points, looping a copytopoint node. So it is growing mesh. But i would like to have just the new ones every frame. metadata from each loop maybe, somehow?

I also have a popnetwork after scatter, to get age and tried to use "Just Born group". But I still get the whole mesh every frame (for obvious reasons)

Iteration Method is by count. Im rising iterations with $F.

Thanks.

BK.

 

Edited by bretik

Share this post


Link to post
Share on other sites

Hey, I don't really understand what you mean, but you can add an attribute to the point for each iteration, based on the detail attribute you have in the metadata node, and after your loop you can put down a blast node and keep the points of the iteration you want based on the attribute you created in the for loop 

Share this post


Link to post
Share on other sites
Posted (edited)

Yes, Thanks Don, that's correct. Here is a file if anyone wonders how to use this.

B.

BK_for_loop.hip

Edited by bretik

Share this post


Link to post
Share on other sites
On 8/8/2019 at 6:18 PM, bretik said:

Hi there,

is there a way to have just last iteration of the for each loop? I mean the last "generation" ?

Im scattering points, looping a copytopoint node. So it is growing mesh. But i would like to have just the new ones every frame. metadata from each loop maybe, somehow?

I also have a popnetwork after scatter, to get age and tried to use "Just Born group". But I still get the whole mesh every frame (for obvious reasons)

Iteration Method is by count. Im rising iterations with $F.

Thanks.

BK.

 

use Feedback mode in Block End / Gather mode.

That way, you only output the last generation.

Share this post


Link to post
Share on other sites

Thanks, but, I have this "Feedback each iteration" but it output all generations... 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×