Need help...How do I access layer group in a group? I have imported file from sketch.Below is a quick example. I want to access ContentA and ContentB. Can some one please help. Thanks in advance.
main Group1 ContentA Group 2 ContentB
As per your example,
You can access ContentA —sketch.Group1.subLayers ContentB —sketch.Group2.subLayers (considering "sketch" is the name of imported Sketch object)However, if you have more layers in these groups then it will return you all the layers at once. Use an array to manage more layers.
Thanks Deb. Also you can access sketch.ContentA
This works too...