Jump to content
Sign in to follow this  
bifrost

Animate pScale of flip overtime?

Recommended Posts

Hey guys! Was wondering if anyone has an idea how to decrease the pScale of flip fluid overtime during the sim?
I am trying to do a shrinking effect using flip and thought this might be a good place to begin with.

Unfortunately, animating particle radius scale on the flip object doesn't really work.

If you have any other idea how to achieve the shrinking effect, please let me know.

All help is appreciated. :)

Cheers,
b
 

Edited by bifrost

Share this post


Link to post
Share on other sites
53 minutes ago, John Svensson said:

Try a geometry wrangle connected to the 2nd input in the flip solver

f@pscale *= 0.99;

Thanks a lot John! That works like a charm. Can you explain the logic here please?

Share this post


Link to post
Share on other sites

*= is a shorter way of saying  @pscale = @pscale * 0.99;

The wrangle evaluates at every timestep, so each time it does, it makes pscale be only 99% of what it was on the previous time step. That will make it get closer and closer to zero. 

Share this post


Link to post
Share on other sites
37 minutes ago, jamesr said:

*= is a shorter way of saying  @pscale = @pscale * 0.99;

The wrangle evaluates at every timestep, so each time it does, it makes pscale be only 99% of what it was on the previous time step. That will make it get closer and closer to zero. 

I didn't know it did the calculation every timestep. It makes sense now. Cheers James! :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×