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

What is Framer? Join the Community
Return to index
Nin Tendo
Posted Oct 11 - Read on Facebook

hey guys, i'm new to framer studio and could need some help :)
i tried to import a sketch file but cannot see the layers as soon as I create folders. does someone know whats wrong ? also i don't know exactly how to target imported layers. the documentation on the website couldn't help.

10 Comments

Koen Bok

Could you share your Sketch file with me? x Mega Drive

Koen Bok

We were just looking into this and it looks like something weird is going on in Sketch. You can see this bug for a full description: https://github.com/bomberstudios/sketch-framer/issues/80

For now you can just create a new document, paste it in and it will work, because it seems to only be an issue with this specific document. I'd also try to avoid artboards with Sketch+Framer if you can.

Nin Tendo

thanks a lot for your help!

Nin Tendo

can you also tell me quickly how to target imported in framer ?

Gabriel Lovato

When you import from Sketch, Studio creates an object with all your layers inside. Let's say your file is called SketchFile. The object would be called SketchFileLayers. To access a layer you use SketchFileLayer.layername

Guus Baggermans

Also, it seems that if you want a layer to be targetable, it needs to be a group. If you have a single square and you want to target it like importedLayers.["square"] just group the square with itself and it works :)

Guus Baggermans

And of course the layer structure is flat, so if you want to reference into a group, just reference the element by it's name. Try not to duplicate names for similar objects :)

Gabriel Lovato

Yes, only groups in sketch are imported as layers in Framer

Koen Bok

Found out what this was. The rulers moved in the document, so the coordinates got all messed up. For more info check the bugs.

Read the entire post on Facebook