Search
getNodesWithAttribute
Get the descendants of this node that support attribute.
// Get any kind of node that has a background color attribute. const nodes = await framer.getNodesWithAttribute("backgroundColor")
This returns nodes that have the given attribute defined in their type, regardless of whether it has been set.
Parameters
attribute:T– The attribute name to filter by.
Returns
Promise<Node[]>– An array of nodes that support the attribute.