3
$\begingroup$

Using Blender 3.4.0 Beta I'm using geometry nodes to instance a honeycomb curve circle on points using a Grid node. It looks like this: enter image description here

I've filled the curve to create the face, realized the instances and am extruding the faces up cyclically based off the of the scene time. enter image description here

The "cycle" time is 96 frames (4 seconds @ 24fps) to go from flat to full height. enter image description here

I'm using a Random Value node set to Boolean to pick the selection. It's all very straightforward. When I change the Seed, I get a different set of random faces to extrude, but I can't seem to change the Seed WHEN I want to. enter image description here

The problem I'm having is that I want the Seed value in the Random Value node to change whenever the modulo of the #frame/96 is 0. In essence, the faces retract all the way, and when they rise again, I want a whole different set of faces being extruded. It seems simple on its face, but I don't see a way of capturing the Seed value being sent when the Boolean is True so that I can keep sending that same value the whole time it's False, until the next True, when it can be updated again. I took out the myriad nodes that were not working for clarity.

Is there a way to do this? I have tried MANY things, but nothing seems to do the trick. Thank you in advance for any guidance! Cheers!

$\endgroup$
6
  • $\begingroup$ This may not be quite the solution you'd prefer, but the short answer is maybe to just set the seed and other values to desired keyframes. $\endgroup$ Dec 6, 2022 at 5:12
  • 1
    $\begingroup$ Use a math node to floor the frame number divided by 96 ? $\endgroup$
    – Gorgious
    Dec 6, 2022 at 7:28
  • $\begingroup$ I mean, yes, manually works, and I consider setting keyframes as manual in this context, because it's just looping ad infinitum $\endgroup$
    – Eric
    Dec 6, 2022 at 14:18
  • 1
    $\begingroup$ Gorgious, that worked brilliantly. Simple. That's an answer! Thank you!!! BTW, IDK how to make that an answer 'officially'. $\endgroup$
    – Eric
    Dec 6, 2022 at 14:21
  • $\begingroup$ Comments can't be accepted as answers. @Gorgious needs to post an answer then you can accept it. $\endgroup$
    – Blunder
    Dec 6, 2022 at 22:17

1 Answer 1

1
$\begingroup$

Using a math node to floor (or ceil, or round, ...) the frame number divided by 96 will yield a different (incremented) number every 96 frames.

Example with an unrelated usecase :

enter image description here

enter image description here

$\endgroup$

You must log in to answer this question.

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