Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Update panel when user switches Comps [scripting]

  • Update panel when user switches Comps [scripting]

    Posted by Jay Brown on March 6, 2018 at 12:45 am

    I’ve been trying to figure out a way for my dockable Panels to update when the user switch Comps. This is what I’ve come up with which seems to work pretty well. However I’m still a total novice at scripting and I just want to make sure that this is safe/the appropriate way of doing this. Thanks -J

    MyComp = app.project.activeItem;
    sTN = app.scheduleTask("checkComp()", 500, true);

    checkComp = function(){
    try{
    test = w.size; // if this fails then the pallete (w) is actually closed and the task is canceled
    if(MyComp != app.project.activeItem ){ // if MyComp value has changed
    MyComp = app.project.activeItem;
    alert("You switched Comps"); // replace with function
    }
    }catch(err){
    app.cancelTask(sTN);
    };
    }

    Jay Brown replied 8 years, 2 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