This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Ben Rodenhäuser
Posted Mar 17 - Read on Facebook

Is there a way to get an array containing all layers in a framer project that come from a Sketch artboard (as opposed to ordinary Sketch layer)?

4 Comments

Ben Rodenhäuser

What I do now is adopt a naming convention for my artboards (i.e., somethin like "name ends with '_artboard'", so that I can collect all of them using the find module ... but it would be nice not to have to do this.

Jordan Robert Dobson

Do a search in the group. I've seen this answered before. I know there is an object somewhere that has this info. I *think* it's a property on the Framer.____ object.

Ben Rodenhäuser

Thanks, Jordan, could not find anything though (suboptimal search skills, I suppose :-)). What I do know is that the json file associated with a Sketch import records whether I am dealing with an artboard. But not sure how I would make that information useable.

Ben Rodenhäuser

What would also be good enough for my purposes would be just to have access to an array listing all the layers that are on the "base level" of my layer tree (i.e., no parent). But, to be honest, I wouldn't even know how to get those...

Read the entire post on Facebook