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

What is Framer? Join the Community
Return to index
Jim Simpson
Posted Oct 20 - Read on Facebook

Hi All, excited to be getting started in Framer! Quick question - I just imported a Sketch file with a few rectangles in a group. I'm trying to target one of the rectangles named "layerA", but I keep getting an undefined error and I can't seem to select the layer. Any suggestions?

5 Comments

Jordan Robert Dobson

Show us what you tried. Or push up your file.

Francois W Brahic

Anything that's in a group in sketch becomes a layer in framer. The name of the layer on the framer side is determined by the name of the group on the sketch side.

Jim Simpson

So something to the effect of:

# Import file "test-framer"
sketch = Framer.Importer.load("imported/[email protected]")

# Set the opacity of layerA
sketch.Group.layerA.opacity = 0.5

?

Jim Simpson

^ this is the bit that isn't currently working for me

Jim Simpson

NVM, got it. Didn't have the child elements in groups in my Sketch file. All good!

Read the entire post on Facebook