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.
For example
#in module file
class exports.MediaController extends layer
constructor:
opts.name ?= 'mediaController'
#other opts
scrubberBar = new Layer
parent: @
width: @width
#other properties
#in framer
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.
https://medium.com/bpxl-craft/developing-a-framer-module-dbf6a7d6ffc9#.1lrp8mkzx

3 Comments