Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script to export PNG

  • Script to export PNG

    Posted by Jason Hare on January 29, 2015 at 9:38 am

    I have found a script that allows a PNG file to be exported at the press of a button. I have discovered that the resolution of the PNG is based on the Resolution/Draw Down Sample Factor of the Project Display window.

    Is there a simple line that I can add to the script to force this window to be full quality prior to exporting the PNG? Would something like this work?

    app.project.item(index).resolutionFactor[1,1]

    Thanks,

    Jason

    Xavier Gomez replied 11 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Xavier Gomez

    January 29, 2015 at 3:28 pm

    you forgot the “=”.

    // store old value
    var oldResFactor = comp.resolutionFactor;

    // set [1,1]
    comp.resolutionFactor = [1,1];

    /* DO STUFF WITH THE COMP */

    // at the end, restore the old value:
    comp.resolutionFactor = oldResFactor;

    Xavier

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