Return to Snippet

Revision: 70829
at July 27, 2016 20:20 by janusoo


Initial Code
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);

Initial URL

                                

Initial Description
failed...

Initial Title
Get rotation of smart object via photoshop script

Initial Tags

                                

Initial Language
JavaScript