Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Track Camera focus to object, then rack

  • Dan Ebberts

    January 8, 2010 at 12:50 am

    Play around with this:

    target1 = thisComp.layer(“Target 1”);
    target2 = thisComp.layer(“Target 2”);

    tStart = 3; // transition start time
    tEnd = 5; // transiton end time

    d1 = length(target1.transform.position,transform.position);
    d2 = length(target2.transform.position,transform.position);

    ease(time,tStart,tEnd,d1,d2)

    Dan

  • Brian Walsh

    April 29, 2010 at 5:34 am

    I used Dan’s expression if you’re using a null to control your camera in conjunction with this expression and came up with this.

    ….Probably self-explanatory to many of you, but it came in handy for me so I wanted to share.

    target1 = thisComp.layer("Target 1");
    target2 = thisComp.layer("Target 2");

    tStart = 1; // transition start time
    tEnd = 3; // transiton end time

    d1 = length(to_world([0,0,0]),target1.position);
    d2 = length(to_world([0,0,0]),target2.position);

    ease(time,tStart,tEnd,d1,d2)

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