Skip to main content
mcsandro
Participant
March 23, 2025
Question

Abort processing in a non-modal state for UXP plugins

  • March 23, 2025
  • 1 reply
  • 202 views

When Photoshop is in a modal state during executeAsModal() then the entire UI thread is blocked. That makes it hard for me to improve the user experience with my UXP Photoshop plugin. I program extensive layer blending operations for star trail processing. This can easily take many minutes or hours once started depending on file size and quantitiy of imported photos. Since mouse clicks cannot be processed at all during modal state and hence the UI is not responding I wonder if there is another "hack" to introduce a Cancel button rather than just pressing the escape keyboard button to abort operations.
Does anybody know whether this will ever be possible somehow in the future? As much as I understand that modal state is not a bad thing I'm not happy with the user experience. The fact that running operations can't be stopped from a user interface is annoying.

However, I know... there are worse things after all... 😉

1 reply

Inspiring
March 23, 2025

From my very limited knowledge in uxp, I know this is not possible.

mcsandro
mcsandroAuthor
Participant
March 23, 2025

That's what I thought. Hopefully there will be some solution for it in the near future. Thanks for your quick reply!