Skip to content

Instantly share code, notes, and snippets.

@kirillgroshkov
Created September 15, 2018 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirillgroshkov/bbe2466e8cecafe7d435d6b0d7767358 to your computer and use it in GitHub Desktop.
Save kirillgroshkov/bbe2466e8cecafe7d435d6b0d7767358 to your computer and use it in GitHub Desktop.
photoshop scripts
var scale = 100;
var idoc = app.activeDocument;
var sel = idoc.selection;
var pgItem = sel[0].duplicate();
pgItem.resize (scale, scale, AnchorPosition.MIDDLECENTER);
#pgItem.resize (scale, scale, true, true, true, true, scale, Transformation.CENTER)
#pgItem.move(ilayer, ElementPlacement.PLACEATEND);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment