Forum Replies Created

  • try this :https://aescripts.com/parental-controls/?srsltid=AfmBOoor8H9fbDm04lIYOrB4LyxLuW87UQfNMRL8_z6GuGhvy7jzn9w4

  • Dan Smith

    April 16, 2025 at 9:16 am in reply to: Delay Point path animation

    Hi Dan,

    I tried to create this expression for delayed movement and elasticity of points on a path, combining the elasticity expression with the one based on your reply. However, the result doesn’t seem ideal after running it. Could you help me identify what the issue might be? Thanks a lot!

    By the way, the null layers follow each point on the path, one by one.

     

    var numPoints = points().length;

    var pts = [];

    var delay = effect(“Slide Control”)(“Slider”);

    var nullLayers = [];

    for (var i = 0; i < numPoints; i++) {

    var nl = thisComp.layer(i + 1);

    nullLayers.push(nl ? nl.position : [[0, 0]]);

    }

    var amp = effect(“Elastic”)(1) / 200;

    var freq = effect(“Elastic”)(2) / 30;

    var decay = effect(“Elastic”)(3) / 10;

    for (var i = 0; i < numPoints; i++) {

    var safeTime = Math.max(time – i * framesToTime(delay), 0);

    pts[i] = points(safeTime)[i];

    }

    if (numKeys > 0) {

    var n = nearestKey(time).index;

    if (key(n).time > time) {

    n–;

    }

    if (n > 0) {

    var t = time – key(n).time;

    var baseVel = thisComp.frameDuration / 10;

    for (var i = 0; i < numPoints; i++) {

    try {

    var v = nullLayers[i].velocityAtTime(key(n).time – baseVel) || [0, 0];

    var deltaX = v[0] * amp * Math.sin(freq * t * 2 * Math.PI) / Math.exp(decay * t);

    var deltaY = v[1] * amp * Math.sin(freq * t * 2 * Math.PI) / Math.exp(decay * t);

    pts[i] = [pts[i][0] + deltaX, pts[i][1] + deltaY];

    } catch (e) {

    }

    }

    }

    }

    createPath(pts, [], [], false);

  • Dan Smith

    September 17, 2024 at 11:53 am in reply to: A question about global variable

    Exactly,thanks a lot ,Dan.

  • Dan Smith

    September 16, 2024 at 1:24 pm in reply to: A question about global variable

    Hi Dan, thanks for your reply.

    In fact, I applied this expression to the position property and then called the values from this global variable group in another shape layer’s path property to create a path. I’m trying to create an effect in AE that looks like real-time writing, but the problem is that it clears itself automatically. Haha, it’s amusing but also quite confusing.

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