Skip to main content
Question

Node Id is not unique

  • January 17, 2024
  • 2 replies
  • 610 views

Patrick_Keenan

The docs say:

Every node has an id property, which is unique within the document. If the id is invalid, or the node cannot be found (e.g. removed), returns null.
figma | Plugin API

But I’ve found as I’m developing my plugin that this is not true. When you alt drag a layer, the children within it have ids that are not unique. Is there a workaround?

This topic has been closed for replies.

2 replies

tank666
  • 4873 replies
  • January 17, 2024

Sorry, but this can’t be true. Each node has a unique ID.


Lucas_Miqueias

Actually the children IDs to use IDs of father for localization, example:

ID father: 12345;
ID Children: 12345; 56789;

But this it doesn’t mean that the child doesn’t have a unique ID.