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

What is Framer? Join the Community
Return to index
Philip Madeley
Posted Jul 25 - Read on Facebook

Sorry to disturb your Sunday bliss..., However, I shall.
Is it possible to loop through an array which already contains arrays and set the default state for each layer?
Any help most appreciated :)


Philip Madeley

I'm guessing this might work?

for array in allActions
__for layer in array
____layer.states.switchInstant 'default'

Trevor Phillippi

You can use a nested loop

Sam Thorne

You're better off concatenating the two arrays into one array; allLayers, if you just want to loop the whole lot in one go

John Lee

Philip's example looks almost correct. However, without seeing a share-framer example in action, I'm also lost... Anyone with a framer example?

Read the entire post on Facebook