Skip to content

Instantly share code, notes, and snippets.

@zehfernandes
Created July 24, 2018 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zehfernandes/d38bad809aa162d5a37efda626fa0dc8 to your computer and use it in GitHub Desktop.
Save zehfernandes/d38bad809aa162d5a37efda626fa0dc8 to your computer and use it in GitHub Desktop.
{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