How to kill particles by velocity?

   7821   6   1
User Avatar
Member
21 posts
Joined: Jan. 2013
Offline
Hello everyone!
I have pop network and I would like to kill particles by their velocity. I've connected kill pop but I don't know how to define the rule. There should be something like v< 1,1,1 but this does not work
User Avatar
Member
86 posts
Joined: Jan. 2009
Offline
If you click the little downward pointing arrow at the side of the VEXpression parameter and choose the kill by condition example you should be able to adjust this to your needs.

It will put this expression in to your VEXpression parameter:
dead = (@P.y > 1) ? 1 : 0;

You should just be able to swap out @P to @v.
User Avatar
Member
21 posts
Joined: Jan. 2013
Offline
Thanks! But I don'y have that option in drop down menu. I typed manually the expression but the I get syntax error.
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Also you can kill your particles outside of the POP Network , Just use a simple Delete SOP and use this expression :

length($VX,$VY,$VZ) > .5

NOTE : for using Velocity , You should use length expression.
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
If you like to do it in the AutoDopNetwork with POP Kill node , Just append a POP Kill node and use this expression on it :

if (length(@v) > 5)
{
dead = 1;
}
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
This is example project for both methods 8)

Attachments:
JKPOP_Kill.hip (239.7 KB)

https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
21 posts
Joined: Jan. 2013
Offline
That worked for me(first one)! Thank you!
  • Quick Links