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

What is Framer? Join the Community
Return to index
Graham Young
Posted Dec 10 - Read on Facebook

Hey all, I'm having trouble importing into framer from Sketch. I have imported the artboard tripDetail and it's showing in the layers tree. When I try to call it though, I get the error "can't find variable: tripDetail"

Any thoughts on why this isn't working?

2 Comments

George Kedenburg III

you have to access your sketch file first in order to get to the layers inside. when you import your file you'll see a line of code injected at the top (something like sketch = Framer.Importer...). to access layers you use a syntax like:
sketch.tripDetail.x = 0

Graham Young

Thanks George, that code is written towards the top. Im also using the util that allows you to not say sketch

Read the entire post on Facebook