Maybe someone out there can help on this:
I would like the ability to clear a layer with the push of a single button.
Clip Studio Paint has such a feature as a default, right in the toolbar. One click and the layer is cleared. Unfortunately, I can't seem to find anything comparable in Painter.
At the moment, I use a Custom Palette in Painter with 3 buttons that need to be pushed in just this order: Select All, Clear, and then Select None.
If there is a way to chain these commands in either Painter or the Wacom Intuos, I would love to know about it.
I don't think so, its one of the many frustrations of painter, sometime you can clear a layer sometimes delete it but when you can do these things seems to depend on the type of layer, as far as I can work out.
Sounds like a script as per product.corel.com/.../wwhelp.htm
you're right, this used to be very easily done by means of scripting (and you can put a script shortcut into a custom palette as well),
however most of my custom scripts from painter IX.5 have never imported correctly into painter 12 and newer:
specifically, UI based interactions haven't survived the transition, but some layer commands were no longer working properly anymore.
considering every other package has a one-button solution for emptying layer content, and this has been a long-standing issue with painter's neglected and outdated layer management tools, corel probably should focus on giving their users some faster, more efficient choices in the future releases.
does your intuos model have programmable buttons? you can add a custom keystroke command through the wacom driver, adding ctrl/cmd+A > backspace sequence to a tablet shortcut key would be one option.
also, there's another shortcut for deleting the layer content that also clears the selection - it's assigned to "backspace" key by default, but it's located under "shortcuts for -> other - > delete selection/node" (in painter 2019 shortcut prefs on mac.)
this shortcut is otherwise not available from the menu dropdown (it might be hidden within the animation menu stack if your painter version still includes it, but I'm not sure - corel discontinued animation features on mac; it might be brought back into menu in later painter versions too, i really don't know), and I can't think of a single way of squeezing it into a custom panel, scripting aside.
You both get today's Gold Star! The script solved my problem.
It's funny: I hadn't looked at my Scripts palette in quite a while -- so long that I had forgotten all about that solution. As it happens, I had previously tried to script out a layer-clearing operation, but could never get it to work. I just re-recorded it, and -- for some reason -- it worked this time.
I will note, however, that the script is still just a bit sub-optimal, in that it takes a second or two to run. Not a super big deal, but -- again -- Clip Studio Paint clears the layer immediately with one click of the dedicated button. (Just sayin'!)
Anyway, thanks again for your suggestion.