Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Run script only if comp exists in project

  • Run script only if comp exists in project

    Posted by Danyl Bernard on October 19, 2020 at 4:40 pm

    Hi all,

    I’m trying to create loop that keeps checking if a comp exists. I want the loop to keep running until the comp exists, and once the comp is found run the rest of the script.

    So far I have a basic for loop, but it doesn’t seem to be doing anything

    for (var i=0 ; i<app.project.numItems.length; i ++)

    if (app.project.item(i). name != “FINAL 2”)

    {

    break;

    }

    Thank you

    Danyl Bernard replied 5 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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