Pop Kill how to set condition to kill particles after certain frames

   8879   5   1
User Avatar
Member
61 posts
Joined: May 2017
Offline
Hi guys

I am struggling with the pop kill node

I want to delete particles after lets say 50 frames
what function or formula do i type inside the vex expression window of the pop kill node?

It seems houdini 16 does not have what the old houdini kill node had to specify this

Thank you

Attachments:
Capture.PNG (539.8 KB)

User Avatar
Member
2127 posts
Joined: Sept. 2015
Offline
if((@Frame > 50) && (@id % 5 == 0)) { dead = 1; }
User Avatar
Member
61 posts
Joined: May 2017
Offline
BabaJ
if((@Frame > 50) && (@id % 5 == 0)) { dead = 1; }
Oh my, This forum is full of geniuses
It is working perfectly thank you very much

I had to trim mine as I dont need the @id information

So mine is

if((@Frame > 50)) { dead = 1; }

Thank you
User Avatar
Member
3 posts
Joined: June 2021
Offline
then how to set condition to kill particles after certain age
User Avatar
Member
12 posts
Joined: Jan. 2017
Offline
Correct me if I'm wrong but isn't this just what the life option does in the popnet birth tab? Also can I add what does the % mean in that expression?
Edited by neutrosophic - March 26, 2022 06:34:29
User Avatar
Member
61 posts
Joined: May 2017
Offline
neutrosophic
Correct me if I'm wrong but isn't this just what the life option does in the popnet birth tab? Also can I add what does the % mean in that expression?
Hi, neutrosophic, I think the option of typing a formula gives more flexibility in the way you can determine conditions that control the life span of particles. the % sign means houdini will execute a specific task at every specified number of frames, so in other words if I type a formula such as: $F%10==0 it means a specific function will be performed every 10 frames
  • Quick Links