FORUMS: list search recent posts

Setting up starting and ending "view finders" (Ken Burns without keyframes)

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Bert Brown
Setting up starting and ending "view finders" (Ken Burns without keyframes)
on Apr 16, 2013 at 6:04:50 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!


Return to posts index

Dan Ebberts
Re: Setting up starting and ending "view finders" (Ken Burns without keyframes)
on Apr 17, 2013 at 12:33:22 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



Return to posts index

Bert Brown
Re: Setting up starting and ending "view finders" (Ken Burns without keyframes)
on Apr 17, 2013 at 3:33:27 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]