Skip to main content
Question

Node Id is not unique


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 comments

2 replies

tank666
  • 4863 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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings