Something I usually do after creating all my layers is store their initial properties for later use:
layer.originalProps = layer.props for layer in Framer.CurrentContext._layerList
Better (thanks Koen): layer.originalProps = layer.props for layer in Framer.CurrentContext.getLayers()
I'm trying to use this line of code with Framer v.74 and I receive type Error any idea what the new format should be?
Leigh they replaced `getLayers()` with only `layers`. so it looks like this:
layer.originalProps = layer.props for layer in Framer.CurrentContext.layers
What do you use this for later?
Maybe a dumb question, but any reason you can't just get those properties from layer.states.default?
Yes you can, unfortunately when I wrote the tip it didn't exist :)
Haha damn, didn't notice the date on the original post. Hello from the future!
Thank you Henrique Gusso