quick question, how can I grab every single layer from all artboards from all pages from a sketch import?
I can only seem to iterate through import['artboard"].sublayers.anything else just returns... well, returns nothing.
you can group artboards??!?!?
oh, wait. No you can't. I don't get what you mean just now.Do you mean make one massive artboard that covers everything?
import should contain every layer. its not hierarchical
I mean, I want to add a particular property to every single layer. That's the goal. Which means I need to be able to iterate through every single layer.
here's some pseudocode:
for page in sketchfile...for artboard in page......for layer in artboard.........layer.on Events.Click, ->............#something
because file = Framer.Importer.Load #####for layer in file
Have you read the last portion of the Import docs here? http://framerjs.com/learn/import/
"Did I RTFM?" is always a great question to ask yourself when stuck. :)
I mean, I should have RTFM-ed. Thanks for the help!