Hi,
I’m a total beginner and I’m trying to create a Photoshop plugin using the UXP tools. I followed a few tutorials, but I get stuck everytime they add a button. I follow the tutorial steps, the button shows up in the panel after reloading, but when I click on it, nothing happens.
Is there anything I’m missing?
Photoshop version: 25.12
UXP Developers tools version: 2.0.1.10
You’re right! Here’s the message I get in the console:
uxp://uxp-internal/domjs_scripts.js:2 Uncaught ReferenceError: showLayerNames is not defined
at main.js:32:63
at e.exports.execScript (uxp://uxp-internal/domjs_scripts.js:2:618363)
at l (uxp://uxp-internal/domjs_scripts.js:2:621085)
at uxp://uxp-internal/domjs_scripts.js:2:621282
at s._executeCallbacks (uxp://uxp-internal/domjs_scripts.js:2:618105)
at s._executeIfReady (uxp://uxp-internal/domjs_scripts.js:2:618032)
at Array.<anonymous> (uxp://uxp-internal/domjs_scripts.js:2:618521)
at s._executeCallbacks (uxp://uxp-internal/domjs_scripts.js:2:618191)
at s.done (uxp://uxp-internal/domjs_scripts.js:2:617919)
at Object.s [as loadHtmlContent] (uxp://uxp-internal/domjs_scripts.js:2:76423)
“showLayerNames is not defined.”
literally it tells the problem. check your function name.
Even if you solve this error, you will find other problems on this code.