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

What is Framer? Join the Community
Return to index
Sigurd Tapio Mannsåker
Posted Apr 09 - Read on Facebook

Hi guys, quick question: is there a way to reference a global variable from within a module? Say I declare foo = true in, I don't appear to be able to use from modules/ for example. Any ideas?


Kevyn Arnott

It's not possible through a module referencing an variable. You can however store the variable in the module and reference it in both the and module. So in the module write: "exports.moo = true", and then you can manipulate that in the with "module.moo." Hopefully, that helps!

Read the entire post on Facebook