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

What is Framer? Join the Community
Return to index
Summer Bedard
Posted May 03 - Read on Facebook

Is it possible to set multiple properties of an imported sketch layer without naming it each time? For example:

sketch.actionBar.y = 100
sketch.actionBar.visible = false

vs:

sketch.actionBar
y: 100
visible: false

Looking to do something like the second option. Been searching the internets but can't find an answer!

2 Comments

Brian Williams

write a function to set the properties?

George Kedenburg III

yep:
sketch.actionBar.props =
..y: 100
..visible: false

Read the entire post on Facebook