Question
Help Button
I am creating a small dialog panel
I would like to add a button with this function
you think you can do it?
this function
var aLevels = dPanel.add ("checkbox", undefined, "Apply auto levels");
if (app.documents.length > 0) {
try {
if (activeDocument.activeLayer.visible == true) {
activeDocument.activeLayer.visible = false;
} else {
activeDocument.activeLayer.visible = true;
}
}
catch (e) {}
}
