Jump to content

accumulating attribute in sop solver


logix1390

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...