Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle write-on with sawtooth type line

  • Wiggle write-on with sawtooth type line

    Posted by Jason Jantzen on May 24, 2016 at 2:04 pm

    I’m not even sure what type of a wave this would be called, but it looks like the triangle function of wave warp with a bunch of wiggle.

    I’m curious if there is an expression that would work with Write-On to do basically the same thing here? I played around with wiggle on Y, but it’s all curvy.

    Jason Jantzen
    vimeo.com/jasonj

    Jason Jantzen replied 9 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Xavier Gomez

    May 24, 2016 at 4:22 pm

    Here’s is a possibility for regularly spaced samples along the x-axis (controlled by the quantity called DX: spacing in pixels between samples).
    I can’t check the expression because i’m not in front of AE, hopefully there is no bug:

    t0 = 0; // reference time
    x0 = 0; // reference x (x position of the cursor at time t0);
    speedX = 100; // "cursor" will move to the right at 100px/sec
    DX = 50; // one sample for y every 50 px (along x-axis)

    yprop = effect("y").slider; // slider control with a wiggle expression (for y position of the cursor)
    y0 = 0.5*thisLayer.height; // reference y

    //===============================================

    dx = (time-t0)*speedX;
    u = dx/DX;
    n = Math.floor(u);
    DT = DX/speedX;

    [x0 + dx, y0 + linear(u, n, n+1, yprop.valueAtTime(t0+n*DT), yprop.valueAtTime(t0+(n+1)*DT))];

    Xavier

  • Jason Jantzen

    May 24, 2016 at 4:54 pm

    Perfect!! Thank you so much Xavier. That’s some genius expression writing without testing.

    Jason Jantzen
    vimeo.com/jasonj

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy