Last active
August 21, 2018 12:06
-
-
Save pmarquees/3176ae07b7668b91382bf8cc7d903561 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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