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

What is Framer? Join the Community
Return to index
Sarah Doody
Posted May 20 - Read on Facebook

I'm having trouble understanding how to call sublayers from Photoshop. I looked at this documentation and I don't follow it: http://framer.com/docs.html#layers&hierarchy

Here is a screenshot of what I am trying to do, but I'm getting an error: 'undefined' is not an object (evaluating 'PSD["hexYellow"].on'

3 Comments

Aaron Carámbula

All layers are based on groups in ps. Group that sub layer and give it its own name.

Sarah Doody

Thanks Aaron!!! So if hexYellow is now in a group called "hexYellow" with the group "Home" would I call it as PSD["Home.hexYellow"] ? That's what is confusing me I think.

Koen Bok

Hey Sarah. The layers are just a flat object (that is why it's so important to give them a unique name). So calling a sublayer is the exact same:

PSD["subLayerName"] = ...

But remember:
Photoshop Group -> Framer Layer

Read the entire post on Facebook