Last active
August 28, 2016 20:00
-
-
Save marianomike/c3334f53e451852d3456e3f1231eaca7 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
var onRun = function(context) { | |
var doc = context.document; | |
var selection = context.selection; | |
if(selection.count() == 0){ | |
doc.showMessage("Please select something."); | |
}else{ | |
for(var i = 0; i < selection.count(); i++){ | |
var layer = selection[i]; | |
var layerClass = layer.class(); | |
var layerFrame = layer.frame(); | |
var layerStyle = layer.style(); | |
var layerName = layer.name(); | |
var layerIsVisible = layer.isVisible(); | |
var layerIsLocked = layer.isLocked(); | |
var layerIsFlippedHorizontal = layer.isFlippedHorizontal(); | |
var layerIsVertical = layer.isFlippedVertical(); | |
var layerRotation = layer.rotation(); | |
var layerParent = layer.parentGroup(); | |
var layerIsSelected = layer.isSelected(); | |
var layerAbsoluteRect = layer.absoluteRect(); | |
var layerUserInfo = layer.userInfo(); | |
var layerCSSAttributeString = layer.CSSAttributeString(); | |
var layerCSSAttributes = layer.CSSAttributes(); | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment