Jump to content
Sign in to follow this  
logix1390

accumulating attribute in sop solver

Recommended Posts

hello 

I am trying to make a custom age attribute in pops using a sop solver.

Basically I have particles sliding down a sphere using a pop collision detect.

I want to add a new age attribute to only the sliding particles.

In the sop solver I use an if statement:

f@myage=0;
if(@sliding>0){
    @myage+=@TimeInc;
}

however, the @myage attribute does not accumulate and only stays at a certain low value.

What am I missing here?

I will attach my scene for anyone that wants to take a look.


Thanks!

custom_age_particles.hipnc

Share this post


Link to post
Share on other sites

your setting @myage back to zero every frame, just remove that line.

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  

×