All the buttons on my panel are disabled when there is no document open in Photoshop.
As soon as a document is loaded the buttons become active because a load even is fired in Photoshop.
Issue
In Lightroom when you choose “Edit In Photoshop”, the document is handed over to and opens with Photoshop but Photoshop doesn’t appear to fire an event which means the button on the panel don’t become active.
Is there an even firing somewhere which I might be missing ?
Update:
I have just tried this with Adobe Bridge and an “open event” fires in Photoshop, so the issue appears to be when you select “Edit in Photoshop” from Lightroom
I also think that there should be an event that is fired when opening an image from Lightroom (“Edit in Photoshop” - a very common task). In my case, my plugin shows the open documents. So I rely on events to keep the panel updated. @samgannaway
Update: I also created a topic in the Prerelease forum: Adobe ID
UXP has no parity here with CEP. It needs propper document tracking. Do you also listen if smart object is opened? Or if you split channels into documents? I just ask Photoshop every second for active document because it is the only reliable way to do it. Wonderful.
What if another 3rd patry plugin opens document? Since individual steps of execution are hiden you would need to check after every script execution. If two plugins gets same idea good luck with infinite loops My point is you can’t catch it all. We need new API for this to do it right. But PS team doesn’t seem to work on extensibility anymore.