Skip to main content
Patrick_Keenan
January 17, 2024
Question

Node Id is not unique

  • January 17, 2024
  • 2 replies
  • 718 views

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
January 17, 2024

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

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Lucas_Miqueias
New Member
January 22, 2024

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.