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

What is Framer? Join the Community
Return to index
Nikolay Berezovskiy
Posted Feb 11 - Read on Facebook

Hi guys. I'm working on a huge project and want to separate different screens between modules. Do you have any suggestions or examples how to do it right?
For example: I even can't get or set properties of layer from module.

3 Comments

Marcelo Eduardo Oliveira

Hey Nikolay Berezovskiy , when you import the module as :

screenEnter = require...

ScreenEnter is now the object that holds all exportabled from the module, including the object screenEnter.

If you do:

screenEnter.screenEnter.visible it will print correctly.

Chris Camargo

If you want it to work the way you have written it, wrap your variable in {}. Like so: {screenEnter} = require "screenEnter"

Krijn Rijshouwer

Hey Nikolay Berezovskiy,

I think that I did exactly what you're looking for in the proto below. Hopefully it'll help you out as an example. Let me know if you have any questions!

http://share.framerjs.com/vv545umshkxi/

Read the entire post on Facebook