AE ENHANCERS

Expressions/Scripts/Presets
It is currently Wed May 22, 2013 3:24 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How do you create batch export script?
PostPosted: Fri May 06, 2011 9:42 pm 
Offline

Joined: Fri May 06, 2011 9:24 am
Posts: 1
Hi :D !
I recently wrote a script below to export some Comps which I select in the project window.

Code:
function mpgExport() {
    var sel = app.project.selection;
    if (sel.length == 0) {
        alert("Select Compositions in the Project Window.");
    }

    for (i = 0; i < sel.length; i++) {
        if (sel[i] instanceof CompItem) {
            app.executeCommand(app.findMenuCommandId("MPEG-4..."));
        }
    }
}

mpgExport();


But I had some problem.
1. It doesn't work when I select more than 2 Comps in the project window.
2. I need to see the setting window and name the file.

I would like to select several Comps in the project window and batch export those to separate files same name as the Comp.

Can anyone help me?

Thanks :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group