Photoshop won't update scriptUI or CEP panel while running a script.
Hi,
My goal is to create a progress window, a realtime report of what the script is doing while running. This includes a progress bar and status text.
I Made one using scriptUI that auto-opens/closes progress windows, and showed realtime feedback with very good performance.
The refresh time was below 1ms!
But it only worked for CC2018/CC2019. In CC2020 the window stopped updating, and would only update when photoshop is doing some heavy stuff like scaling. Basically when the script logic is waiting for Photoshop, only then it is updating it's UI.
I thought a solution was to make a HTML CEP extension panel to replace the limited scriptUI stuff, and use the PlugPlugExternalObject to dispatch an custom JSX event, and an eventListener in de CEP progress window. But to the same effect, it's only dispatching or receiving all the events at ones, ones the script is finished running, so for example, the script starts, dispatches 50 reports while running, nothing happens for a full minute, the script is done, and the panel starts updating, showing all the messages in a flash at onces.
For some reason CC2020 prevents scriptUI panels from updating, and CEP panels are on "pauze" while a script is running in photoshop...?
A simple realtime progress report while a script is running seems much more complicated that I thought.
Does anyone have any idea on how to proceed from here?
