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
3 Comments
Debashish Paul
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.
3 Comments