Created
July 24, 2018 14:43
-
-
Save zehfernandes/d38bad809aa162d5a37efda626fa0dc8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{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