-
bringToFront() for AE? UI keeps falling behind application
Is there a way to make a user interface come to the front of the screen?
I’m using the UI from this script:
https://forums.creativecow.net/thread/227/12707
but it keeps falling behind After Effects, and I always have to move AE to get to it.
function switchPal(thisObj)
{
function switchPal_buildUI(thisObj) {var panel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "Express On/Off", [100, 100, 310, 180],{resizeable:true});
// Text...
panel.butOne = panel.add("statictext", [40, 10, 225, 30], "Enable/Disable Expressions");// 'Enable' button
panel.enabBtn = panel.add("button", [40, 40, 80, 60], "=");
panel.enabBtn.onClick = enableAll;// 'Disable' button
panel.disabBtn = panel.add("button", [120, 40, 160, 60],"≠");
panel.disabBtn.onClick = disableAll;return panel;
}// Display interface...
var UI = switchPal_buildUI(thisObj);
if ((UI != null) && (UI instanceof Window)) {
UI.center();
UI.show();
}
}
switchPal(this);