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

What is Framer? Join the Community
Return to index
Eli Rousso
Posted May 08 - Read on Facebook

So I'm trying to make some fake data in this array and pipe it into a for loop to create some new layers with the data. I keep getting this error when trying to access the artworks array[i].title. Any help would be much appreciated!

4 Comments

George Kedenburg III

you only have 2 items in your array, but your loop is looping 5 times, so for 3-5 you'll get undefined

Eli Rousso

ahhh thanks

Jordan Robert Dobson

I would just do this...

for work, index in artwork
print index, work.title

Brian Williams

Personally I prefer map syntax for jobs like this but...

Read the entire post on Facebook