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

What is Framer? Join the Community
Return to index
Greg Jang
Posted Mar 26 - Read on Facebook

Hi guys,
I'm starting to use Framer and really enjoying the potential Framer has and have a question about selecting sublayers.

I have my layers in Sketch as in the image below.
Is there a way to select "inputEmail" inside "signup1" without using sublayers array?

example: app.signup1.inputEmail
The above example gives me a
TypeError: undefined is not an object (evaluating 'app.signup1.inputEmail.on'

however "app.signup1.sublayers[1]" works well.

I suppose I could make sure all the layers have independent names but that seems inefficient.

any help would be great thank you!


Jonas Treub

The hierarchy is unimportant for imports. You can target the layer directly using sketch.inputEmail

Greg Jang

sorry I forgot to mention that I have inputEmail in both "login" and "signup1". This is why I wanted to use signup1.inputEmail

Jonas Treub

In that case it's best to use unique names.

Greg Jang

ah I see. I hope this becomes a feature so I can keep things clean. Thank you

Bradley Kang

Allon Kim

Mike Johnson

Also, here's a quick video explaining how it works.

Read the entire post on Facebook