Question
Persistent and unique layer handles
Hello,
I'm developing a plugin that needs to keep persistent and unique handles to layers across file open/closes. It appears that the SDK only has provisions for accessing layers by name or index and has no way of retrieving a unique persistent handle to a layer from AILayerHandle. I'd like to save a set of selected layers to disk (XMP, resource fork, etc) and retrieve this information the next time the file is opened. I can do this now using layer names, but since they are not required to be unique, it causes problems if there are duplicates. Any help is appreciated, thanks.
--josh
I'm developing a plugin that needs to keep persistent and unique handles to layers across file open/closes. It appears that the SDK only has provisions for accessing layers by name or index and has no way of retrieving a unique persistent handle to a layer from AILayerHandle. I'd like to save a set of selected layers to disk (XMP, resource fork, etc) and retrieve this information the next time the file is opened. I can do this now using layer names, but since they are not required to be unique, it causes problems if there are duplicates. Any help is appreciated, thanks.
--josh