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

What is Framer? Join the Community
Return to index
John Hamman
Posted Jun 15 - Read on Facebook

I am getting undefined in not an object (evaluating input_store_name.text)
when I try to set a variable of a photoshop layer (text layer) named text.

My photoshop layers are grouped as such:
signup_landing (group)
- model_activate (group)
- - input_store_name (group)
- - - text (text layer)

My framer.js code is like so:
signin_activate = Framer.Importer.load "imported/prototype.v1"
model_activate = signin_activate.model_activate
input_store_name = model_activate.input_store_name
input_store_name_default_txt = input_store_name.text #error on this code

I tried also :
input_store_name_default_txt = input_store_name.index = 1
and got the same message.

What am I doing wrong?

1 Comments

Balraj Chana

Hey John, so you're trying to assign a variable to the input_store_name group? Try this:

variable = signin_activate.signup_landing.subLayers[0].subLayers[0]

Read the entire post on Facebook