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

What is Framer? Join the Community
Return to index
Min Hu
Posted Apr 02 - Read on Facebook

Hey guys. I got another question here: Is it possible to change color property of a layer's sublayers? So something like Layer.subLayer.backgroundcolor?


Chris Lee

You could write a loop. Something like:
sublayer.backgroundColor = 'red' for sublayer in layer.subLayers

...or use layer.subLayersByName to target specific sublayers.

Min Hu

That sounds great! Thanks!

Read the entire post on Facebook