Photoshop UI button toggle (scripting)
When using a Photoshop dialog the application functionality is suspended until the dialog revolves.
At the same time, while the dialog is open, can a UI button toggle a script function on/off?
When using a Photoshop dialog the application functionality is suspended until the dialog revolves.
At the same time, while the dialog is open, can a UI button toggle a script function on/off?
Here is a sequence of screenshots that illustrate the process with the palette UI.
Wondering if it is possible to achieve a toggle effect with a Photoshop HTML panel?
1-Run script

2- Toggle button

3- Close palette button

4-Change application focus

4- Return application focus to Photoshop.
Palette UI persists.
Close button does not work.

5- Force quit Photoshop to close palette.

@Polycontrast use
exitButton.onClick = function () {
dialog.hide();
}
instead
exitButton.onClick = function () {
dialog.close();
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.