Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Setting up starting and ending “view finders” (Ken Burns without keyframes)

  • Setting up starting and ending “view finders” (Ken Burns without keyframes)

    Posted by Bert Brown on April 16, 2013 at 6:04 pm

    I make a lot of Ken Burn’s Effect slide shows and I’m looking to avoid keyframing, rather instead relying on two guide layers inside a precomp to set the “views” at the beginning and end of a 10 sec animation.

    So in this case, the outside comp would look into itself and start with the “view” defined by the green layer and then zoom in and move to the “view” defined by the red layer.

    I already know how to access the scale and position information of the inside guide layers, what I’m having trouble with is finding, I guess, the ratios. I sort of got it to work with scale but the positioning throws that off. To make matters a little more complicated, the outside comp is half the size of the pre-comp)

    Thanks in advance!

    Bert Brown replied 13 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 17, 2013 at 12:33 am

    Tricky, but I think this will be close:

    // position:

    dur = 10;

    v1 = comp(name).layer(“View 1”);
    v2 = comp(name).layer(“View 2”);

    p1 = toComp(v1.toComp(v1.anchorPoint));
    p2 = toComp(v2.toComp(v2.anchorPoint));

    p1a = value + ([thisComp.width,thisComp.height]/2 – p1);
    p2a = value + ([thisComp.width,thisComp.height]/2 – p2);
    ease(time,inPoint,inPoint+dur,p1a,p2a)

    // scale

    dur = 10;

    v1 = comp(name).layer(“View 1”);
    v2 = comp(name).layer(“View 2”);

    s1 = [thisComp.width/(v1.width*v1.scale[0]),thisComp.height/(v1.height*v1.scale[1])]*10000;
    s2 = [thisComp.width/(v2.width*v2.scale[0]),thisComp.height/(v2.height*v2.scale[1])]*10000;

    ease(time,inPoint,inPoint+dur,s1,s2)

    Dan

  • Bert Brown

    April 17, 2013 at 3:33 pm

    Thanks, Dan! Once again, amazing stuff I know I could just never come up with. Testing it out now and it seems to work fine

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