/ Published in: JavaScript
failed...
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var idnull = charIDToTypeID("null"); var layerReference = new ActionReference(); layerReference.putEnumerated(charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt")); var layerDescriptor = new ActionDescriptor(); layerDescriptor.putReference(idnull, layerReference); layerDescriptor.putEnumerated(charIDToTypeID("FTcs"), charIDToTypeID("QCSt"), charIDToTypeID("Qcsa")); var transformDescriptor = app.executeAction(charIDToTypeID("Trnf"), layerDescriptor, DialogModes.ALL); var angle = transformDescriptor.getDouble(charIDToTypeID("Angl")); alert(angle);