SEARCH
  Search

More materials by author Denny Tang

Add a photo-realistic ray of light from any light source.
Functions are a great way to keep large and complicated lines of code organized.
If you are new to scripting for Photoshop, please view our Photoshop Scripting Basics tutorial for an introduction to Photoshop scripting and a few exercises about basic JavaScript. 1. Check to for an opened document. If there isn't an opened document, nothing will happen
Making new art layer using photoshop scripts
Changing layer properties using photoshop scripting.
All CRT (Cathode Ray Tube) have a refresh rate. A refresh rate defines how fast the frames are being shown. For example, if a monitor has a refresh rate of 60hz, it means that the image is being shown and updated 60 times a second. At 60hz, the monitor will flash the image 60 times every second.
The first step in a script for Photoshop is to set what units you want to use in your code. There are two types of units to define, the Rulers and Type. The ruler unit specifies the image dimension and the type unit specifies the text size.
Creating a New Photoshop Document If you are new to scripting for Photoshop, please view our Photoshop Scripting Basics tutorial for an introduction to Photoshop scripting and a few exercises about basic JavaScript.
What if we have several opened documents and want to choose only one of them to be closed? Documents are identified by the ordered they were opened in. Open several files inside Photoshop and click on the Window menu. We'll notice that the documents shown on the bottom of the menu are sorted by the....
1. Save the current ruler units preference and change it to one you would like to work with. var oldRulerUnits = preferences.rulerUnits; preferences.rulerUnits = Units.PIXELS; For a better understanding of the above code, please read the Setting the Ruler and Type Units tutorial.