This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Văn Công Bằng
Posted Aug 27 - Read on Facebook

I have one big layer with 10 subLayers, i want to switch each layer to the same specific state. I usually add 10 subLayers to an array and for loop for add and switch states. Is there any way i change those layers without using array ? Because sometimes, there are too many subLayers

3 Comments

Joshua Tucker

Hey Văn! SubLayers are stored in an array on the parentLayer. So you can loop through like so without creating a separate one:

for layer in parentLayer.subLayers
do whatever.

Văn Công Bằng

Thanks so much Joshua Tucker

Joshua Tucker

Văn Công Bằng Anytime!

Read the entire post on Facebook