Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects fitting layers

  • fitting layers

    Posted by Victor Camacho guerrero on April 10, 2012 at 4:09 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

    Roland R. kahlenberg replied 14 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies
  • Roland R. kahlenberg

    April 10, 2012 at 5:01 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

  • Victor Camacho guerrero

    April 11, 2012 at 8:21 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

  • Roland R. kahlenberg

    April 13, 2012 at 5:14 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

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