Add tag, metadata or comment to components/groups

It would be great to be able to add info to a component/group that would be accessible from within UXP. Anything would actually work: a tag, meta, comment… Then you could mark a component as a type so you could treat the component in different ways depending on what type it is.

2 Likes

You can save data or metadata using the pluginData property:

https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#SceneNode-pluginData

There is also a new property added recently called sharedPluginData that lets other UXP plugins check for meta data:

https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#SceneNode-sharedPluginData

I haven’t tried it but if you want to define this data globally (like literally) then you might create a cloud document with your components and set the meta data on that and then others that use that cloud document and those components and your UXP plugin can then access that meta data.

2 Likes

Thank you! I found this after I made this comment!

1 Like

Here are links to the new location of the plugin API documentation (no difference for the pluginData APIs, but the old location will no longer be updated):