Skip to main content
Solved

Is there a way to find the selections parent artboard?


Lewis_Healey

I want to be able to find the current selection’s parent artboard (top Frame node) so I can run tests on the name but I see that Frame nodes are used for both the children and the parent. Is there anything I can use to know it’s the first FrameNode instead of checking if there is no parent?

Thanks!

Best answer by Gleb

Exactly! 🙂

View original

3 replies

Gleb
  • Power Member
  • 4706 replies
  • May 18, 2022

The correct way is to check if the parent of frame node is the page node.


Lewis_Healey

Ok cool, so if it’s a child deeply embedded in the frame I can keep checking parent until I reach page? thanks


Gleb
  • Power Member
  • 4706 replies
  • Answer
  • May 19, 2022

Exactly! 🙂


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