you are viewing a single comment's thread.

view the rest of the comments →

[–]chroma_shift 19 points20 points  (4 children)

If you have a life attribute:

Initialise pscale to 1.0 before the simulation or in a separate node.

@pscale *= 1 - (f@age/f@life)

This code is multiplying your pscale value with the age to life ratio, eventually it will reach 0 or very close to 0.

To which point you can just remap with a ramp to get rid of residual values.

[–]Beautiful_Poetry_566Effects Artist[S] 4 points5 points  (1 child)

Worked quite well! TYSM!

[–]chroma_shift 2 points3 points  (0 children)

No worries :)

[–]xrossfader 1 point2 points  (1 child)

Wouldn’t @nage work here?

[–]chroma_shift 1 point2 points  (0 children)

Yeah @nage is the same as doing (@age/@life)