Skip to content

Instantly share code, notes, and snippets.

@simonreeves
Last active September 28, 2020 11:43

Revisions

  1. simonreeves renamed this gist Sep 28, 2020. 1 changed file with 0 additions and 0 deletions.
  2. simonreeves created this gist Sep 16, 2020.
    13 changes: 13 additions & 0 deletions houdini_vellum_rbd_geo_wrangle
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    // 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');
    }