When user interacts with a slider by holding mouse button, many operations in Photoshop do run, but don’t display on the screen. The simplest example is updating Levels adjustment layer gamma value with a slider, image changes only when mouse button is released.
Logging everything I don’t see any errors. Batchplay descriptors behind the slider handle update are running with modalBehavior: "execute" set.
Any way to make image update in real time while user interacts with the panel? It seems to work for some elements in Photoshop, for example Hue Saturation adjustment layer does update in real time.
Just keep in mind, that on a bit heavier Ps operations changes still won’t be visible real time. Only when you pause the sliding, it would catch up on last value
I can always delay the real heavy operation with setTimeout and update only after some time when user doesn’t move the slider, to avoid spamming heavy operations.
Still, at the moment UI doesn’t update at all, only after mouse button is released.
Yes, everything is invoked, I can see my functions running, calling to batchPlay and no errors.
But image doesn’t change until I release the mouse button