sorry for stupid question, i need to animate all sublayers in some particular layer. How to iterate through all the sublayers?
How to iterate through all the sublayers in Framer
3.9k views Asked by Sergey Prostov At
2
There are 2 answers
0
On
I came across this question looking for a similar solution. I wanted to change all subLayers in a given layer, even deep nested layers. In the Docs I found descendants. Adding here in case someone is looking for a solution to iterate all nested subLayers.
for descendant in layers
descendant.ignoreEvents
You can iterate sublayers of a layer via for-in loop
if you need an index of each sublayer, you can change loop like this