Am I mistaken or could you use dot snytax to refer to nested layers in a sketch file before? So sketch.layerA.buttonlayer worked as well sketch.buttonlayer? I have icons with the same name nested in Groups that I want to refer to specifically.
This was possible before. "They can also be selected directly. There's no need for you to take the layer hierarchy into account." http://framerjs.com/learn/import/
Actually, this has always been a flat list. If you want to select a sublayer you can do sketch.layerA.subLayerWithName("buttonlayer")
Argh yes sorry my mistake. You are right.
I lost more then few hours on that, as i am framer noob and "non-coding" designer who wants to do fast prototypes :).In sketch, i have folder structure like this (which is logical in my view):Challenge1: Title; Opponents (opponent1, opponent2); description;Challenge2: Title; Opponents (opponent1, opponent2); description;Challenge3: Title; Opponents (opponent1, opponent2); description;...So, if i want to access and animate opponent1 and opponent2, first i have to do some prints (like old matrix printer), write down ID-s and then set them as easy to access variables:opponent1_1 = sketch.Challenge1.subLayers.subLayersopponent1_2 = sketch.Challenge1.subLayers.subLayersetc...
Its not quite elegant and it bothers me because in that tree view its all nicely displayed.
Or i can edit my sketch file and flatten that structure and put unique names there, which is also a pain :). (sometimes i'm not the author of those sketch files and then i have to use the same amount of time to restructure a giant list of those ChallengeX).
It would help if i could at least skip those prints at start and get layer ID by hovering with my mouse over the layer in tree view (like i'm getting coordinates now).