ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Extendscript: Button stays highlighted after click

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jay Brown
Extendscript: Button stays highlighted after click
on May 29, 2016 at 5:28:15 pm

Is their a way to deselect a button after its been clicked?

currently I have:
myPanel.grp.groupOne.myPurgeButton.onClick = function () {
var newPurgeButton = app.purge(PurgeTarget.IMAGE_CACHES);
}


The only thing I can find is that if I add
myPanel.grp.groupOne.myPurgeButton.active = false;
it seems to work on the first click, but not on any consecutive clicks.

Any ideas on how to do this?

Thanks,
-Jay


Return to posts index

Konstantin Nemo
Re: Extendscript: Button stays highlighted after click
on Apr 20, 2019 at 7:27:59 am

I had the same issue in the latest AE version (16.1.1). I googled it, but failed to find an answer.

Fortunately, I found a simple workaround for this issue. You just need to explicitly make an element active, then make it inactive back. In your case it might look like:

myPanel.grp.groupOne.myPurgeButton.active = true;
myPanel.grp.groupOne.myPurgeButton.active = false;

It might be useful for those, who stumbled across the same problem.

All the Best,
Konstantin Nemo
Music Visualizer Templates


Return to posts index

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