Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions find solid items extendscript

  • find solid items extendscript

    Posted by Rainier Raydán on May 17, 2017 at 4:17 pm

    Hi,

    I’m trying to type a function to find solid items in the project. I know that if I want to find a comp I just use instanceOf CompItem but I can’t find the word for solids…

    Rainier Raydán replied 9 years ago 2 Members · 3 Replies
  • 3 Replies
  • Rainier Raydán

    May 17, 2017 at 4:26 pm

    Ok. I just type in the console this app.project.item(1) and it shows me that the item is a FootageItem but a footageitem can be a lot of items. I just want to get just the solids items. Is there a way of getting this items?

  • Dan Ebberts

    May 17, 2017 at 4:40 pm

    Something like this, probably:


    var myItem = app.project.item(1);
    if ((myItem instanceof FootageItem) && (myItem.mainSource instanceof SolidSource)){
    // do stuff
    }

    Dan

  • Rainier Raydán

    May 17, 2017 at 6:18 pm

    wow! Thanks!

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