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

What is Framer? Join the Community
Return to index
Saulo Dourado
Posted Apr 18 - Read on Facebook

Hello, I’d like to know hot set/read a layer custom property. When clicking, I get the right value from the layer.name, but from the layer.myCustomProperty I’m getting an undefined.

for index in [0...rows]
row = new Layer
name: “John”
myCustomProperty: “sample”

row.on Events.Click, (event, layer) ->
print layer.name, layer.myCustomProperty

2 Comments

George Kedenburg III

in your event use @ instead of layer

George Kedenburg III

also for custom properties i think you need to set them after youve created the layer, not on the same line

Read the entire post on Facebook