Nested Layers Question
Hi All, This may be a silly question. (I did look through the group to find info on how to access nested layers)
I was curious about accessing nested layers from an imported sketch file where there are duplicate names It seems as though I have to name each layer. Here is an example of what I mean:
pwdInputField = Navigation.subLayers.subLayers.subLayersemailInputField = Navigation.subLayers.subLayers.subLayers
I was just wondering if there is a *smarter* way of doing this :)
When you import nested groups are actually all namespaced directly on the import object.
In your case `pwdInputField = Navigation.yourGroupNameFromSketch`
Here's a plugin I wrote that should help with situations like this: https://github.com/awt2542/Select-for-Framer
In this case you'd use SelectOne('Password > InputField') and SelectOne('Email > InputField'). If you'd like to do this without a plugin you could try Navigation.password.subLayersByName('InputField'). The plugin handles a lot of other cases too, though.