I'm running into a discrepancy in what subLayers returns between Framer Studio and the Browser
Framer Studio returns name, the browser does not
Here are two samples
Framer studio:<Header_col id:101 name:fb_pain_header (1406,202) 602x50>, <Label_medium id:102 name:fb_pain_byline (1406,272) 602x50>
Browser (Chrome & Safari on Mac, Chrome on Windows)<Header_col id:101 (1406,202) 602x50>, <Label_medium id:102 (1406,272) 602x50>,
Any ideas for ways I can work around this? Specifically i'm using childrenWithName to find a layer and bring it to the front.
This is very hard to debug without looking at the code. Any chance you could share it?
I've hunted this down, and you're right: The behaviour of studio is different then in shared prototypes.
But unfortunately the bug is that Layer.name should never contain the name of the layer if it's not set explicitly, so you can solve this by setting the names of your layer explicitly in the constructor of the layer. We probably will remove the automatic setting of name in a future version of Studio.
Thanks Niels, Thanks for looking into it. And thanks for the suggestion for how to fix it, I should have thought of that.