Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to cover the whole Composite with scale property?

  • How to cover the whole Composite with scale property?

    Posted by John Kevien on May 3, 2008 at 4:57 pm

    the subject as the title!!

    I am going to moving a small solid layer to left upper corner,and then scale it up to cover the whole composite.

    So, I need some advices.

    Thanks in advance!!

    Dan Ebberts replied 18 years ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    May 3, 2008 at 7:35 pm

    This should get you close:

    startScale = 1; //time when scaling starts (seconds)
    scaleDur = 2; // scale duratation (seconds)
    initScale = [100,100]; // initial scale value

    w = thisComp.width*thisComp.pixelAspect;
    h = thisComp.height;
    finalScale = [w/(width*source.pixelAspect),h/height]*100
    ease(time,startScale,startScale+scaleDur,initScale,finalScale)

    If you’re doing this from the upper-left corner, you’ll probably want to move the anchor point to the upper left corner of your layer.

    Dan

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