Is there a way to find the selections parent artboard?

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!

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

1 Like

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

Exactly! :slight_smile:

1 Like