How do you set an attribute to a Framer Layer so you can reference that layer later on based on attributeEx- layerA.name = "10" layerB.name = "20" layerC.name = "50"
Now i want to reference the layer that has name, let say 20.
Hey Rahul Dhyawala, you could store the layers you wish to target by name in an array, loop over it and then target them by the name attribute instead of by variable.
i know this.. but i have lots of layers.. more than 100. Then it doesn't seem optimal way. Can't I directly reference like getlayerByName or something?
`Framer.CurrentContext.getLayers` could help you
Thanks Benjamin and Seoh