Skip to main content
Participant
September 13, 2018
Answered

Export png sequences from multiple files at once

  • September 13, 2018
  • 1 reply
  • 1304 views

Hey, I'm working on a project that involves a lot of exporting.

Is there a way to export png sequences and mov's from multiple fla's at once?

Thanks!

This topic has been closed for replies.
Correct answer JoãoCésar17023019

Hi.

You can achieve this with JSFL.

https://help.adobe.com/archive/en_US/flash/cs5/flash_cs5_extending.pdf

Here is a script that will allow you to choose a folder where the FLAs are located and then it will export the PNGs in the main timeline using the current settings.

Export PNGs From Multiple FLAs JSFL script download:

Export PNGs From Multiple FLAs.jsfl - Google Drive

JSFL code for reference:

function exportPNGs()

{

    var uri = fl.browseForFolderURL("select", "Select the folder containing the FLAs.");

    var files = FLfile.listFolder(uri + "/*.fla", "Files.");

    try

    {

          for (var i = 0, total = files.length; i < total; i++)

          {

              fl.openDocument(uri + "/" + files);

              fl.getDocumentDOM().exportPNG(uri + "/" + i + "_" , true, false);

              fl.getDocumentDOM().close(false);

          }

    }

    catch(error)

    {

          fl.trace(files);

          fl.trace(error);

          fl.trace("___________");

    }

}

exportPNGs();

To run JSFL scripts, double-click them or drag and drop in the Animate CC IDE or go to Commands > Run Command.

I hope this helps.

Regards,

JC

1 reply

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
September 14, 2018

Hi.

You can achieve this with JSFL.

https://help.adobe.com/archive/en_US/flash/cs5/flash_cs5_extending.pdf

Here is a script that will allow you to choose a folder where the FLAs are located and then it will export the PNGs in the main timeline using the current settings.

Export PNGs From Multiple FLAs JSFL script download:

Export PNGs From Multiple FLAs.jsfl - Google Drive

JSFL code for reference:

function exportPNGs()

{

    var uri = fl.browseForFolderURL("select", "Select the folder containing the FLAs.");

    var files = FLfile.listFolder(uri + "/*.fla", "Files.");

    try

    {

          for (var i = 0, total = files.length; i < total; i++)

          {

              fl.openDocument(uri + "/" + files);

              fl.getDocumentDOM().exportPNG(uri + "/" + i + "_" , true, false);

              fl.getDocumentDOM().close(false);

          }

    }

    catch(error)

    {

          fl.trace(files);

          fl.trace(error);

          fl.trace("___________");

    }

}

exportPNGs();

To run JSFL scripts, double-click them or drag and drop in the Animate CC IDE or go to Commands > Run Command.

I hope this helps.

Regards,

JC

Participant
June 18, 2021

merhabalar. 

2021 animate için video/media export edebilmek için buna benzer bir yapı var mı?

elimde yüzlerce fla dosyası var, hepsini video yapmam gerekiyor.