Photoshop replacement for Paste Into

Home Pixelmator Pro Pixelmator Pro Scripting Photoshop replacement for Paste Into

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #303
    shawtywitt's avatarshawtywitt
    Keymaster

      Scripting in Pixelmator Pro is quite powerful. The photoshop’s “Paste into” function in Pixelmator Pro can be accomplished via the following Applescript:

      Just open ScriptEditor and input the following:

      tell application "Pixelmator Pro"
          tell the front document
      	set sel_rectangle to selection bounds
      	if (sel_rectangle = missing value) then
      		display dialog "Missing selection"
      		return "Quit no selection"
      	end if
      	set shapeLayer to convert selection into shape
      	select shapeLayer
      	paste
      	set pasteLayer to current layer
      	tell pasteLayer to set clipping mask to true
          end tell
      end tell

      I know some people find source code a bit daunting, so I’ve also created an easy-to-use application version of the same thing. You can find it on my Etsy store, which is the same as the source code version.

      https://www.etsy.com/listing/4296779695/paste-into-pixelmator-pro-action-paste

      This is a Pixelmator Pro Applescript addition. If you are comfortable with Applescripting language – you can take the above code and try it yourself for free. See my store for other cool stuff if you want to see the power of advanced Applescript for Pixelmator Pro.

       

      #351
      mccoytest's avatarmccoytest
      Participant
      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.