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

What is Framer? Join the Community
Return to index
Justin Young
Posted Jun 06 - Read on Facebook

I had two problems come up this morning after changing my Sketch file that I couldn't seem to find a solution for.

First, I moved the position of artboards around and made a few tweaks to the designs, but nothing that I thought would effect Framer. When I imported the file again, a lot of layers were appended with a number, like "menu1" or "item3". In the original Sketch file, the names are "menu" and "item". This of course broke the prototype. I figured out a workaround but I'm not sure why the layer names changed during import.

The second problem I noticed after importing the Sketch file was that any layer that I had rotated in Sketch, was positioned very incorrectly in Framer. The position was correct in Sketch, and Framer's inspector highlighting showed the layer in the correct position, but it was not rendered in the right position. I had to un-rotate the layers in Sketch to fix the positioning problem, which was different than how I wanted my design, obviously.

Any ideas? The only thing I did before changing or importing the Sketch file was to add a license to Framer Studio, as it had been a trial version before that.

7 Comments

Krijn Rijshouwer

Hey Justin Young,

In the last update we decided to add an identifier to layers so you can always call the Object individually. We did this to prevent situations where you for example have 10 layers in Sketch all named “card” and then would only be able to call the first one in the stack.

We will look into the second issue. Thanks for reporting!

Koen Bok

Hey Justin, I just tried some rotation tests from Sketch, but they all seem to work pretty well. Any chance you can share your Sketch file with me at [email protected]?

Cosmin Negoita

Justin Young Hey, how did you solve the first issue? Would love to hear a solution :)

Ilteris Kaplan

"In the last update we decided to add an identifier to layers so you can always call the Object individually. We did this to prevent situations where you for example have 10 layers in Sketch all named “card” and then would only be able to call the first one in the stack." Is this now default? My old framer files are all broken because of this change. I used to be able to have different parent layers have the same subLayer name and call them dynamically previously. It looks like now this is impossible.

Ilteris Kaplan

Krijn Rijshouwer Shouldn't sublayers with different parent be allowed to have same layer name?

Krijn Rijshouwer

This won't work when you are calling layers directly on the sketch import. Could you show me the files that are broken because of this change?

Ilteris Kaplan

Thanks for the response. I would love to unfortunately they are confidential. This functionality should not work on files I imported from Sketch, if I understand you correctly? Very strange. I even copy pasted groups to new Sketch file (3.8.2) just to make sure I am importing from latest Sketch.

Read the entire post on Facebook