ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

fitting layers

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Victor Camacho Guerrerofitting layers
by on Apr 10, 2012 at 4:09:39 pm

Hello everyone,

Ii got a situation where i need to roto a layer. This layer is a background which is a landscape, and because i got some buildings over in different layers i need to roto some of the background to place over these building in order to blend them with the background.

So basically what i did was duplicating the background and put over the building. But because this duplicated layer needs to be in 3D when this transformation is applied , the scale changes. Later for adjusting this layer in order to have exactly the same size than the original background is almost impossible.

Any solution??

~Many thanks


Return to posts index

Roland R. KahlenbergRe: fitting layers
by on Apr 10, 2012 at 5:01:31 pm

The following script maintains the scale of a layer. You may have to adjust its position but scale will be consistent with its size in 2D.

//Place this script in a layer's scale property
cam = thisComp.activeCamera;
distance = length(sub(position, cam.position));
scale * distance / cam.zoom;
// End of script

HTH
RoRK

Intensive AE & Mocha Training in Singapore and Malaysia
Adobe ACE/ACI (version 7) & Imagineer Systems Inc Approved Mocha Trainer


Return to posts index

Victor Camacho GuerreroRe: fitting layers
by on Apr 11, 2012 at 8:21:57 am

Hi Roland, thanks a lot for your script. I have been playing around, and it helps, however there is still a long way in order to perfectly adjust both layers. Is there any way else for this??

Many thanks


Return to posts index


Roland R. KahlenbergRe: fitting layers
by on Apr 13, 2012 at 5:14:42 am

Apologies for the late reply Victor, I actually thought that I had replied to your last post - argh! Been quite busy over here.

If you were to explain your issues exactingly, then perhaps I or others may be able to assist you.

Cheers
RoRK

Intensive AE & Mocha Training in Singapore and Malaysia
Adobe ACE/ACI (version 7) & Imagineer Systems Inc Approved Mocha Trainer


Return to posts index

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