Skip to main content
Jason42
February 28, 2024
Question

Is it possible to get information about nested instances from the plugin API?

  • February 28, 2024
  • 5 replies
  • 590 views

I’m looking to get data about nested instances in components for a plugin I’m working on. I’d also be keen to know if there’s a Figma plugin developer community I can join too.

Thanks!

This topic has been closed for replies.

5 replies

tank666
February 28, 2024
figma.com

You can ask questions, leave feedback and bug reports here on the forum, in the Plugin and Widget API and REST API categories. Also, you can join the developers server on Discord: Friends of Figma.

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
Jason42
Jason42Author
February 28, 2024

Thanks @tank666! I’ll try that but I’m not sure I’ll get the info I need from a recursive function over all a component’s children and all their children. I’m specifically looking for nested instances that are available to interact with from the main component, not just child components within a parent component.
image

tank666
February 28, 2024

Judging by your screenshot, these are exposed instances.

figma.com
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
Jason42
Jason42Author
February 28, 2024

Ahh, that might work… although I was trying to access that information from ComponentNode or ComponentSetNode. I guess I can create an instance, get what I need and delete the instance. Thanks again!

tank666
February 28, 2024

It is not necessary to create an instance. You can traverse the tree of a component’s children and check the isExposedInstance property on instance nodes.

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