Jump to content
HolesinShoes

Enabling a force for only particles with this attribute

Recommended Posts

Hi all!

I'm using a FLIP fluid, with a pop curve force to guide them, which is working well. However, I want to make the particles only have gravity after they've left the curve. To do this, I would expect to be able to use the "oncurve" attribute created by the pop curve force, but the following VExpression is not working:

force = @oncurve == 1 ? force : 0;

This was suggested to me by a user on another forum, however if this can also be done with standard expressions (such as on the activation parameter), then I'd be more than happy to hear it.

Any help is greatly appreciated!

Edited by HolesinShoes

Share this post


Link to post
Share on other sites

use a pop stream to see what particles are affected.

ingroup = @oncurve == 0;

then you can apply a pop force or whatever forces you want to apply to those particles downstream, and merge it to the mainstream.

  • Like 1

Share this post


Link to post
Share on other sites

Thanks Sepu, problem solved!

I've got another hopefully quick question:

is it possible to restrict whitewater emmission to particles with an oncurve attribute of 0?

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

×