1
$\begingroup$

I've been working on a 'digital stopmotion' setup using geometry nodes, it basically cycles through some selected objects to create a stop-motion effect. Currently, it goes through these 5 objects to create a flame, but only does it once since it's based on seconds so the number keeps going up. I'm looking for a way to use the "Number of Meshes" Integer to give it a limit and loop it back to 0.

I know I can use an Integer to just key the numbers going up and down but it would be great to have this automated for more control.

Screenshot with my current setup:

enter image description here

$\endgroup$

2 Answers 2

4
$\begingroup$

If you move (or link) your objects into a collection, then this sort of arrangement will automatically cycle through them in their name-order:

enter image description here

enter image description here

$\endgroup$
1
  • $\begingroup$ Thank you so much, this is perfect! $\endgroup$
    – OnnoVader
    Jun 30 at 10:34
2
$\begingroup$

hopefully this is what you want to achieve?

enter image description here

$\endgroup$
2
  • $\begingroup$ Hi, thank you! This is exactly doing what my setup currently does as wel (yours is a smarter setup though haha). The issue is that it only does this once, Im looking for a way to make it loop (cycling from object 1-2-3-4-5-1-2-3-4-5 etc.) without having to key the numbers myself $\endgroup$
    – OnnoVader
    Jun 30 at 10:07
  • 1
    $\begingroup$ To make it loop simply pass the "frame" through "math: modulo" to convert infinite to periodic sequence. $\endgroup$ Jun 30 at 12:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .