Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects AE Scripting question – multiple activeItem’s

  • AE Scripting question – multiple activeItem’s

    Posted by Spencer Tweed on December 4, 2012 at 5:23 am

    I’m working on a script that takes the selected compositions and queues them, with a custom naming convention, multiple output modules, etc.

    I have the script basically doing all I want it to, but am not sure how to run it when the user selects multiple compositions. In other words I built the script around “app.project.activeItem” and it works great, but what the heck do I do if the user has multiple items selected in the project?

    Any help is really appreciated! Sorting these questions out in the AE Scripting Reference isn’t as easy as I thought it would be…

    – Spencer

    Spencer Tweed replied 13 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 4, 2012 at 4:36 pm

    app.project.selection gives you an array of all the selected items. You can loop through the array and process each comp (you probably want to make sure each selected item is a CompItem).

    Dan

  • Spencer Tweed

    December 5, 2012 at 2:45 am

    Aha, just what I was looking for! Thanks Dan, I won’t have time to get to it today but I’m sure that’ll do just the trick!

    My scripting adventure continues…

    – Spencer

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