bomberstudios / sketch-framer

A Sketch plugin to easily export your mockups to FramerJS
Other
767 stars 67 forks source link

Views not defined? #57

Closed joeycordes closed 10 years ago

joeycordes commented 10 years ago

Not sure if it's the new Sketch Beta 3.0.2 or changes here but when I call layer group names in app.js they're showing up as undefined in the error console. Any tips?

bomberstudios commented 10 years ago

Can you share a ZIP file with your project for investigation? Thanks! : )

joeycordes commented 10 years ago

https://dl.dropboxusercontent.com/u/64856203/Sketch-Framer-Test.zip

bomberstudios commented 10 years ago

Thanks, I'll take a look and see what's going on.

cemre commented 10 years ago

Joey, you need to access the views with the PSD.Background or PSD["Background"] syntax. Accessing them with bare variables is a function of the library that we gave in our Framer workshop in San Francisco but hasn't been publicly released just yet. If you have this file, remember to include it in your index.html :)