How to change the value of a node when a specific frame is reached

I'm trying to figure out how to insert a keyframe that'll record a change in my geometry nodes' values.

I have a node that controls the starting position of an object, I want the Z-axis to be at -1.21 for 216 frames, and after that I want to change it to 9.49 until the end of the animation, to create the illusion of an explosion. What happens is that it just stays at 9.49 for the whole animation. So basically -

how can I change the value of a node (float) when a condition is met?

I need some node setup to act as my "if...else..."

• Maybe use Math>Greater Than or Math>Less Than? Commented Sep 10, 2022 at 14:05
• @ChristopherBennett gonna take a look and try, thanks for the suggestion Commented Sep 10, 2022 at 14:10
• I was able to use the node to output 0 until the frame count reaches 216, question is, how can I switch between values depending on that 1 or 0 that the Math>Greater Than node outputs? Commented Sep 10, 2022 at 14:22

To time certain actions in Geometry Nodes, you use the Scene Time node.
In this example I set the Z-position of the object from frame $$216$$ to the value $$9.49$$:
• thank you so much for the great solution! I just wanna ask - my Greater Than node looks a little different; instead of A and B I have a Value and a Threshold, I also can't specify I want an Integer. how come yours is different from mine? Commented Sep 10, 2022 at 15:03
• @kfirezer You are welcome! On the one hand there is the option Greater Than in the Math node, but on the other hand there is also the node Compare, which I use here. But they both do largely the same thing in this case. Commented Sep 10, 2022 at 15:08