Forum Replies Created

  • Eli Lesh

    April 16, 2015 at 8:09 am in reply to: how to EXPORT a composition as a standalone file ???

    here is a script that does it:

    var orgFIleUrl = app.project.file;

    var comp = app.project.activeItem;
    if ((orgFIleUrl != null) && (comp!=null))
    {
    var rootfolder = orgFIleUrl.toString ().substr (0, orgFIleUrl.toString ().lastIndexOf ('/'));
    alert(rootfolder);
    var comp = app.project.activeItem;
    app.project.reduceProject(comp) ;

    var save_file = new File(rootfolder + "//" + comp.name +".aep");

    new_project = app.project.save(save_file);

    var my_file = new File(orgFIleUrl);
    new_project = app.open(my_file);
    if (new_project){
    alert(new_project.file.name);
    }

    }else alert('nada');

    open it in the script editor,
    select the comp that you want to export in the project tree
    and run the script in the editor,
    it will save the comp in the same folder as the project

    i don’t think it is fair to charge money for a ten line script…

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