Re: SDK Question: Obtaining keyDocumentID, keyLayer ID from a notification??

TR
Posted By
Tom Ruark
Jun 25, 2003
Views
1299
Replies
0
Status
Closed
"Jake" wrote in message
I’m using Photoshop SDK 6.0 under WIndows 2000.

After using the GETTER plugin I spotted the delicious keywords keyDocumentID and keyLayerID. I’m messing around with the Listener plugin trying to get it to provide more information on the event that occurred. If a document was closed I want to know exactly what document. If a layer was moved or deleted I want to know exactly what layer of what document that was. Thanks to GETTER I see that there is hope in identifying this important information — each object (?) of Photoshop has its very own unique ID.

After obtaining this ID (ie. when a new document is created, or a picture loaded, or a new layer added) I will store this ID into my Associative Array container with a little extra info. Then when the user modifies the object such as closing the document or deleting a layer I will use its available "unique key ID" to lookup what information was stored in my associative array.

GETTER seems to take a snapshot on the Photoshop enviroment. This is fine but I also need to be informed that this so and so document has closed down so that I may remove this unique document entry from my associative array. Is this possible? If not perhaps your can suggest how I identify all open/closing documents, all active/moved/removed layers.

My newsgroup server is volatile. If its possible can you email me directly with your response.

Thanks for any hints.

The LISTENER plug-in is set up to listen to all events that occur. This is how the Listener.log file is produced for the DEBG build. You can use that functionality to gain knowledge when a document is closed or a layer is deleted. Then you can use the GETTER routines to get the snapshot of Photoshop. The ID that is missing must be the one that closed or got deleted.

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections