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

What is Framer? Join the Community
Return to index
Martino Bilello
Posted Oct 12 - Read on Facebook

Hi everybody! Here's a question from a noob: can I group the layers of a sketch file I've imported into an array?

3 Comments

Benjamin Den Boer

Hey Martino Bilello, sure! :-)

myLayers = [sketch.layerA, sketch.layerB, sketch.layerC]

And then you can loop over them:

for layer in myLayers
____layer.x = 20

Andreas Wahlström

You might find this useful, too: https://github.com/awt2542/Layers-for-Framer You can create groups/arrays based on names, layer properties, active states and more.

Martino Bilello

This is very useful. Thanks a lot

Read the entire post on Facebook