Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Interpolation from one dimension to two dimensions

  • Dan Ebberts

    October 22, 2014 at 9:42 pm

    Maybe like this:

    minY = 0;
    maxY = 400;
    minScale = 0;
    maxScale = 100;

    y = thisComp.layer(“y source”).transform.position[1];
    linear(y,minY,maxY,[minScale,minScale],[maxScale,maxScale])

    Dan

  • Ale Elizondo

    October 23, 2014 at 1:05 am

    Dan that works perfect!! 🙂

    I used the same idea for interpolate between two layers of two dimension:

    minY = 500;
    maxY = 700;
    minX=400;
    maxX=600;
    minScale = 0;
    maxScale = 100;
    y = thisComp.layer(“1”).transform.position[1];
    linear(y,minY,maxY,[minScale,minScale],[maxScale,maxScale]);
    x = thisComp.layer(“1”).transform.position[0];
    linear(x,minX,maxX,[minScale,minScale],[maxScale,maxScale]);

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