Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Stretch to Fit in After Effects

  • Stretch to Fit in After Effects

    Posted by Payal on August 30, 2005 at 1:08 am

    Hi,

    Does anybody know the mathematical formula or algorithm for “Stretch to Fit” similar to choosing a footage and doing a Alt+Ctrl+Shift+H on it? I want to script this function and am wondering how can I do this. I didnt find a method to do it in the Scripting Guide. Did I miss it?

    Thanks,
    Payal

    Payal replied 20 years, 11 months ago 3,455 Members · 1 Reply
  • 1 Reply
  • Payal

    August 30, 2005 at 1:16 am

    For those who would like to know…

    it is this formulaes.. to make it D1

    var scaleX = (720 * 0.9)/(myLayer.width*myLayer.source.pixelAspect);
    var scaleY = 486/myLayer.height;

    I have not tested this yet..but will check it..:)

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