I’m using setPluginData()
to add custom data on an EffectStyle. When a layer that has this style applied is selected, I can read this custom data when it’s a local style. But when I publish this style, and apply it to a layer in another document, getPluginData()
shows up empty.
Is this a known issue? Or am I doing something wrong?
Steps to reproduce:
— Create a new Effect style
— Use setPluginData()
to set custom info on that style
— Apply the style to a local node
— Read custom info from style linked to local node using figma.getStyleById(figma.currentPage.selection[0].effectStyleId).getPluginData()
(this works)
— Publish the style as part of a library
— Enable the published library in another document
— Import and apply the style to a node in the second document
— Use getPluginData()
to read custom info on the style applied in second document (this shows up empty)