Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Position layer in the centre of document

$
0
0

I'm trying to copy a document from one open document to another which I have achieved, but how can I position it in the centre of the new document?

This is what I am using at the moment,

 

tellapplicationid "com.adobe.photoshop"

  settextNametonameofcurrent document

  setMainDocumenttocurrent document

  set {oldTID, AppleScript'stext item delimiters} to {AppleScript'stext item delimiters, "_"}

  setimageDoctofirsttext itemoftextName

  setSecondaryDoctodocument (imageDoc& ".PSD")

  logSecondaryDoc

  logMainDocument

 

  setcurrent documenttoSecondaryDoc

  duplicatelayer "Main Image" oflayer set "Dodge and Burn" ofSecondaryDoctobeforelayer "Main Image" ofMainDocument

  setcurrent documenttoMainDocument

 

 

 

 

endtell


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>