Skip to main content
Inspiring
April 21, 2014
Question

Reload a secuence of pictures

  • April 21, 2014
  • 1 reply
  • 687 views

Hello.

Iwill like to know how I can reload a secuence of a item inside project. via scriptting .Thank you

If any could help me.

Reggards and sorry my bad english.

This topic has been closed for replies.

1 reply

Inspiring
May 18, 2014

Hi,

You can loop through your image sequence and force a reload/refresh in the following manner:

var items = [footageItem1, footageItem2]; //this needs to be an array of FootageItems to work.

                                          //You can also loop directly through the app.project.items list and test for "instanceof FootageItem"

for(var i=0; i<items.length; i++) {

     items.mainSource.file.mainSource.reload();  //reload the asset

}

See page 62 of the After Effects CS6 Scripting Guide for more information.


Hope that helps.
Calvin

Inspiring
May 18, 2014

Hello and Thank you

I find this code in the page 62 http://blogs.adobe.com/aftereffects/files/2012/06/After-Effects-CS6-Scripting-Guide.pdf?file=2012/06/After-Effects-CS6-S… but I not find.

And it is posible change the resource in air?

For example if a layer have compos1 change to compos2.

Thank you

Inspiring
May 18, 2014

Hi,

Sorry, I don't understand exactly what you're asking...can you re-phrase or elaborate?  Would like to help but not sure how to answer.