Document ID

Is it possible to get a document id for the document we’re working on??

Hi @Manjila, you are able to set a unique id to the root of the document. What’s the use case?

I’m looking to get the document id so that I can store it in a database with the text nodes from the document for relationship management.
Is the unique Id you’re talking about guid?

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

Or you could also just use

scenegraph.root.guid

no? […scurrying to check…]

Whoops, nope, that’s always just

"custom_guid_for_artwork"

Forgot. :wink: