Skip to main content
Nidhin_Kuttikkattu_Rajeevan
Active Member
June 2, 2023
Question

List all the properties of a component instance

How can I find all the properties of a component instance?
const instanceVariant = Figma.currentPage.selection[0] as InstanceNode
const allVariantsNamesArr = instanceVariant.mainComponent.parent.children.map(
(child) => child.name
);

This command prints all variantProperties. But I wish to list all properties.

This topic has been closed for replies.

12 replies

Nidhin_Kuttikkattu_Rajeevan
Active Member
June 13, 2023

OK. I will try to iterate the csv file sequentially, then I will fill a result{} array,
after that I will try to feed that result into the setProperties…

Nidhin_Kuttikkattu_Rajeevan
Active Member
June 14, 2023

Thanks Tank. It is working fine… Thank you.