Skip to main content
This topic has been closed for replies.

4 replies

tank666
January 28, 2023

You need to use the setProperties(obj) method.

InstanceNode.setProperties({'propertyName': 'propertyValue'});
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
a.nevolina
January 29, 2023

[quote="tank666, post:2Thank you for answering. I tried that but there is a strange error: “Could not find a component property with name: ‘Text’”. However, there is such a property in this instance

tank666
January 29, 2023

propertyName corresponds to the names returned by componentPropertyDefinitions and should be suffixed with ‘#’ and a unique ID for ‘TEXT’, ‘BOOLEAN’, and ‘INSTANCE_SWAP’ properties.
InstanceNode | Plugin API

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
a.nevolina
January 29, 2023

That worked, great!
I found the property: console.log(element.componentPropertyDefinitions); and indicated the property name. Thank you very much!