Jump to content

PSCALE expression


DaJuice

Recommended Posts

Hi again, back with another question. :D

I have a popnet that's instancing metaballs for geometry. Instead of the particles popping (bad pun) out of existence I want them to shrink to nothing at the end of their life. I'm using a Property POP to mess with the pscale attribute, and I'm trying to find an expression that will do what i described. What do I need to do so Houdini knows I want the expression to work on each particle from the time it spawns until the time it dies? Anyone have an idea how I should reference that info?

Thanks.

Link to comment
Share on other sites

Try placing two property ops and initialize the scale in the first one with the correct number you need and then in the second property op you could reduce the scale of each particle over its life with this expression:

$PSCALE - ($PSCALE*$LIFE)

If you want to start the scaling at a certain age and not from the start you could replace the $LIFE in the expression with a smooth function.

This will start to scale the particles down when they've reached 70% of their lifespan:

$PSCALE - ($PSCALE*smooth($AGE, .7,$LIFESPAN))

Hope this is what you were looking for :)

--Ronnie

smooth_interp.zip

  • Like 1
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...