E
E
Egor Rublev2015-11-25 14:39:24
Programming
Egor Rublev, 2015-11-25 14:39:24

How to write a plugin for photoshop?

Good afternoon, in general, I want to write for myself a small script (plugin) for Photoshop, or find a ready-made solution.
I'm tired of doing the same actions when cutting the layout and I want to automate them, let's take as an example an icon that needs to be cut without a background:

  1. I select the desired layer (s) and press ctrl + r (bind to "copy to new layer").
  2. I select "Document" "New" and write the file name (you can write it without a name when saving the file).
  3. I press ctrl + t (bind to "triming").
  4. I press ctrl + shift + s (bind to "save file as ...").
  5. I choose the folder where to save (PS remembers, then you don’t need to choose)
  6. I press tab and the down arrow (to drop out a list of types), select SuperPNG (this is from the SuperPNG plugin, it saves in png with compression (like without quality loss)). and press enter
  7. The SuperPNG settings window appears (it's enough to set it once and it remembers the automatic settings), so I press enter again
  8. I press ctrl + w and right arrow and enter (bind to "triming").

If you press everything clearly and quickly, it takes 3-4 seconds for the whole process. How can I write a plugin that automates this process?
I want so:
  1. I select the desired layer(s) and press ctrl+r (a plugin window appears where you need to enter the file name, type and folder where to save). Done, the file is in the right folder, in the right format, with the right name!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
drc, 2015-12-16
@drc

faster to throw a script on AutoIt https://www.autoitscript.com/site/autoit/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question