Adding age to our Points
To keep our computer from becoming too slow, we want to kill the Points that are too old. We will make this happen using a Named Attribute called age.
To get started, we will need to define the age of the Point when they are born, which is right after the Distribute Points on Faces node.
Setting a starting age value
Let’s add a Store Named Attribute node after the Distribute Points on Faces node. As mentioned before, we want to name our attribute age with a starting value of 0.
Next up, we want to increase the age of each point by one in each frame.
Increasing the age in each frame
To do this, we will use a Math node set to Add, which will add +1 to our age each frame, and save it to the Named Attribute using a Store Named Attribute node.
Let’s walk through the process step by step:
- Start by adding a Store Named Attribute node right after our Transform Geometry node and enter the Named Attribute
age.
...