OK, Framer-ers, I'm trying to write a module, but I'm not finding anything that really helps me understand what I need to do.
The guide attached here only goes so far - where I'm trying to make a module that generates a media player, but that has multiple layers in it, the properties of which might need to be manipulated by the end user after the module / media component is generated.
I can't work out how to expose ALL the layers created in the module so they can be accessed in Framer, while also generating and nesting them inside the module.
#in module file
class exports.MediaController extends layer
opts.name ?= 'mediaController'
scrubberBar = new Layer
MediaContainer = require 'videoPlayer'
mc = new MediaContainer.MediaContainer
scrubberBar.backgroundColor = "FFF"
# framer says 'variable scrubberBar not found'
but see the picture - it's visible in Framer!
Help, please. Modules confuse the hell out of me.