Get rotation of smart object via photoshop script


/ Published in: JavaScript
Save to your folder(s)

failed...


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.