Particles stick/unstick

   5265   4   0
User Avatar
Member
133 posts
Joined:
Offline
Hi,

I sticked particles to a sphere with the collison detect and set behavior to stick.
How can I unstick them let's say on a later time, ie. after 30 frames?


Thank you for any help
Tom
User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
I've uploaded simple HIP.
Please check it out.
Edited by Nima - July 25, 2017 16:18:11

Attachments:
Particle Stick and Unstick.hip (265.7 KB)

User Avatar
Member
133 posts
Joined:
Offline
Nima
I've uploaded simple HIP.
Please check it out.

Hi Nima,
thank you a lot for the sample. I also tried it with the wrangle node, but there was
something wrong and I am new to VEX.
Is there also a way to make slider control to turn it on and off for keyframing?

Best Regards
Tom
User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
You have multiple choices to do that.
One way is setting keyframes on Activation parameter of pop collision detect node.
Another way is using VEX to manipulate @stuck attribute for instance:
if (@Frame < 50)
@stuck = 1;
if (@Frame > 50)
@stuck = 0;
means if frame number is less than 50 particles stick on surface and after frame 50 particles are not stick on surface anymore.
Remember that VEX code in pop wrangle node runs on all particles means that when you are animating Activation parameter of pop collision detect node it applies on all particles but when you are using pop wrangle, it runs on every single particle.
Hope this helps.
User Avatar
Member
133 posts
Joined:
Offline
Nima
You have multiple choices to do that.
One way is setting keyframes on Activation parameter of pop collision detect node.
Another way is using VEX to manipulate @stuck attribute for instance:
if (@Frame < 50)
@stuck = 1;
if (@Frame > 50)
@stuck = 0;
means if frame number is less than 50 particles stick on surface and after frame 50 particles are not stick on surface anymore.
Remember that VEX code in pop wrangle node runs on all particles means that when you are animating Activation parameter of pop collision detect node it applies on all particles but when you are using pop wrangle, it runs on every single particle.
Hope this helps.

Hi,
yes it helped me very much!! Thank you! Now I better understand the wrangle stuff. Cool
  • Quick Links