Skip to content

Instantly share code, notes, and snippets.

@marianomike
Last active September 6, 2016 06:02
Show Gist options
  • Save marianomike/43c95ec853bad8d21103400a679767c6 to your computer and use it in GitHub Desktop.
Save marianomike/43c95ec853bad8d21103400a679767c6 to your computer and use it in GitHub Desktop.
//create the variables
var layerName = layer.name();
var layerFrame = layer.absoluteRect();
var layerXpos = String(layerFrame.x());
var layerYpos = String(layerFrame.y());
var layerHeight = String(layerFrame.height());
var layerWidth = String(layerFrame.width());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment