When you import your PSD or Sketch files, does the hierarchy of your groups of layers turn into sublayers of the group or do you have to write the code for it?
Hierachy is preserved, but layers are accessible from a flat list in your variable if that makes sense. Layer.subLayers will show you a list of all the sublayers
Hey Alex! Hierarchy is respected from PSD/Sketch and nested folders/groups become subLayers of the folders above them automatically.
In the case of Sketch, folders at the highest level are subLayers of the Artboard they are in. It's been a while since I've used PS so I'm not sure how folders at the top level are handled against the document they are in. But I would presume similarly.
thanks this is good to know, I've been struggling to create a scrolling layer, just setting the topmost imported layer .scroll to true didn't work