Skip to content

Instantly share code, notes, and snippets.

@pmarquees
Last active August 21, 2018 12:06
Show Gist options
  • Save pmarquees/3176ae07b7668b91382bf8cc7d903561 to your computer and use it in GitHub Desktop.
Save pmarquees/3176ae07b7668b91382bf8cc7d903561 to your computer and use it in GitHub Desktop.
plugin.run = (contents, options) ->
"""
#{contents}
# Input component, collapse this so you can read your file properly
{InputLayer} = require "input"
# Loop to all layers and find the inputs
inputs = Framer.CurrentContext._layers.filter((a) =>
return a.name == "input"
)
# Replace the inputs
for l in inputs
# map propertie by properties
input = new InputLayer
x: l.x
y: l.y
parent: l.parent
l.destroy()
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment