Skip to main content
Solved

How do you traverse through all pages in a figma file with the API?

  • May 3, 2022
  • 1 reply
  • 961 views

Erica_Luzzi

My plugin creates a new page in a user’s file. However, I don’t want it to create a new page every time they open the plugin. If the page has already been created, I want the outputs to appear on the same page that was created last time the user used the plugin.

In order to do this, I need a way to traverse all pages in a file and check whether or not the page with a specific name already exists.

How might I go about this? Not finding page traversal in the documentation.

Thanks!

Best answer by tank666

figma.root
figma.com
View original

1 reply

tank666
  • 4858 replies
  • Answer
  • May 3, 2022
figma.root
figma.com

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings