Help with expression

   3539   7   0
User Avatar
Member
26 posts
Joined: Dec. 2011
Offline
Hi all, have some problem: i have emitter and some particles collide with ground, what expression should i write, that this particles, after colliding with gdound - become noise ?
User Avatar
Member
512 posts
Joined: July 2009
Offline
well if you use the collision POP then you can tell it to output the “numhit” attribute. Which stores how many times each particle has collided with the ground. Then you group the collided particles with the following expression:
if($NUMHIT > 0, 1, 0).
Then you add a force POP (noise tab) or a curlnoise POP and tell it to apply the noise only to your newly created group!

cheers,

Manu
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
26 posts
Joined: Dec. 2011
Offline
and i dont understand: 1) i group my particles in “collision” node, then should print this expression, but where should i do this?
User Avatar
Member
349 posts
Joined: Aug. 2006
Offline
Here read the sticky in the particle network.

Attachments:
numhit_attrib_001.hipnc (76.6 KB)

User Avatar
Member
26 posts
Joined: Dec. 2011
Offline
Big thanks, yet understand how it works and how use groups more powerful)
User Avatar
Member
26 posts
Joined: Dec. 2011
Offline
and if i want to group my particles by lifetime? expression $LIFE >2 is wrong
User Avatar
Member
26 posts
Joined: Dec. 2011
Offline
ouh, help is real helpful)) should type - $AGE)
User Avatar
Member
349 posts
Joined: Aug. 2006
Offline
$LIFE only works if the particle system know when that particle will die.

$AGE can be used as it comes along free with the particles, however if you want to actually see those values on a per particle basis, they are not inside the spreadsheet. You need to add a attribute in the popnetwork and create the $AGE variable. Once that has been done, you can look up those values in the spreadsheet.
  • Quick Links