Photoshop not showing adjustment layer changed from plugin
Hey
So I've written a plugin that let me send data to PS and do adjustment changes in my own app & control PS & see results there.
I'm using Qt6 for my app & widgets to simulate a similar experience to photoshop native adjustment ones.
However when I move & hold the mouse pressed, I can see that for example, the curve changes, but the image does not update. It's as if drawing in photoshop was stuck until I release the button in my app. My app is a separate process so I don't understand why it would cause photoshop to not "update".
The way I work is
1. I connect via a generator to PS.
2. I send JS command calling on my plugin
3. My C++ plugin performs adjustment change
4. Curve changes/ image does not until I release the mouse button
I tried adding refresh() to my JS script after calling my plugin, but now nothing updates in PS, not even curve. It's fully stuck. It looks like photoshop is stuck until I release the mouse button. It seems that there is some odd logic in PS to NOT update the image while the mouse is pressed? Or mayb its because photoshop is not in main focus and thus it does not update? How can I focus-force it or something?
How can I disable it in either c++/JS ?
Regards
Dariusz
