ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

AE Scripting question - multiple activeItem's

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Spencer Tweed
AE Scripting question - multiple activeItem's
on Dec 4, 2012 at 5:23:14 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


Return to posts index

Dan Ebberts
Re: AE Scripting question - multiple activeItem's
on Dec 4, 2012 at 4:36:15 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



Return to posts index

Spencer Tweed
Re: AE Scripting question - multiple activeItem's
on Dec 5, 2012 at 2:45:35 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]