0

is it possible to randomly delete instance from top to bottom? tried some stuff but was only removing geometry and not instances created that small geometry node setup to scatter object on a curve but i would like to randomly remove instance on the z axis (like using a ramp) thanks!

enter image description here

enter image description here

1 Answers1

1

enter image description here

With the following node setting:

enter image description here

In this example the top instance is unstacked every one second.

It adds delta time of the simulation zone and check if more 1 second elapse is spent.

If yes, it gets the topmost instance, using an attribute statistics looking at max Z position value and delete the corresponding instance(s).

lemon
  • 60,295
  • 3
  • 66
  • 136
  • awesome gonna try that thanks! stupid question how do you get the cumulated time input in the simulation input/output? – Florent Lebrun Mar 04 '24 at 14:08
  • just add a float input, for instance from the n panel once the group input is selected. Note that you provided a very partial information about your node setting, so, this answer may work directly or may need to be adapted. – lemon Mar 04 '24 at 14:53
  • thanks! here is the file (simplified the nodes but its the base) https://www.dropbox.com/scl/fi/ycvtmyexh1o6kfufsmurz/geonodes-curve-clean-light.blend?rlkey=tn5lt0rtsbqt544cydzf7oso3&dl=0 like i said pretty new with all that and just trying stuff out with what i find online, so if you have tips to make it better dont hesitate :) – Florent Lebrun Mar 04 '24 at 15:49
  • Your file with the "unstack" + some randomness, if that can help: https://blend-exchange.com/b/w0mDP0xg/ – lemon Mar 04 '24 at 16:13
  • awesome man thanks! – Florent Lebrun Mar 04 '24 at 17:38