Hi guys,
In my plugin I’m trying to find all component nodes so I can get their “key” property, however I am unable to access the “type” property of any of the nodes in my document so that I can filter out accordingly.
I have identified the id of one of the nodes I want to access and used const node = figma.getNodeById(nodeId)
to check its properties however the outputted Node object doesn’t seem to have any accessible properties other than id (example output: {id: "119:2745"}
).
Similarly, if I try node.type
on any node returned by figma.root.findAll()
or figma.currentPage.selection
, it returns undefined
. The only property that works is node.id
.
Could there be something wrong with how my project is set up or am I missing something in accessing a node’s properties?