Skip to content

Instantly share code, notes, and snippets.

@simonreeves
Last active September 28, 2020 11:43
Show Gist options
  • Save simonreeves/3d97f1e5dfaa638c9808a3c82e1f4967 to your computer and use it in GitHub Desktop.
Save simonreeves/3d97f1e5dfaa638c9808a3c82e1f4967 to your computer and use it in GitHub Desktop.
#houdini #vellum #rbd #vex #geometry_wrangle #prim
// get first point on each prim
i@point_zero = primpoints(0, @primnum)[0];
// get that point's emit frame
i@emit_frame = point(0, '__frame', @point_zero)*.01;
// subtract emit frame from current frame to create age
i@age = @Frame - @emit_frame;
// at a certain frame lower the strength
if (@age == chi('frame')) {
f@strength = @strength_orig * chf('low_strength');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment