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

What is Framer? Join the Community
Return to index
Marc Krenn
Posted Apr 23 - Read on Facebook

Hey everyone,

How can I access a sublayer that has been copied?

I think it should be something like
' copiedLayer[copiedSublayer] ' .opacity = 0 (just as an example)

Or is there any way to access a (sublayer) using its (unique?) ID?



Benjamin Den Boer

The subLayers are stored in an array, and you can target specific ones by referencing their index. Like this:

print copied.subLayers
copied.subLayers[0].opacity = 0

Marc Krenn

thanks, Benjamin!

Read the entire post on Facebook