Posted By

janusoo on 07/27/16


Tagged


Versions (?)

Get rotation of smart object via photoshop script


 / Published in: JavaScript
 

failed...

  1. var idnull = charIDToTypeID("null");
  2. var layerReference = new ActionReference();
  3. layerReference.putEnumerated(charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt"));
  4. var layerDescriptor = new ActionDescriptor();
  5. layerDescriptor.putReference(idnull, layerReference);
  6. layerDescriptor.putEnumerated(charIDToTypeID("FTcs"), charIDToTypeID("QCSt"), charIDToTypeID("Qcsa"));
  7. var transformDescriptor = app.executeAction(charIDToTypeID("Trnf"), layerDescriptor, DialogModes.ALL);
  8. var angle = transformDescriptor.getDouble(charIDToTypeID("Angl"));
  9. alert(angle);

Report this snippet  

You need to login to post a comment.