type:photoshop script
date:25 Nov 2012
This Photoshop script gives the selected layer an offset of 50% in the x and y direction. Changing the offset is a little trick for making tileable textures. You can see where the borders meet and make them seamless. When done you do the offset again. Unfortunately the standard Photoshop interface only accepts pixel values. A percentage cannot be entered. When working with images with different dimensions you have to change the values repeatedly. That is where this simple script comes in. It does the math for you and gives the currently selected layer an offset of 50%, regardless of its dimensions.


You can download the script here:


How to install a Photoshop script
Method 1)

  • Copy the downloaded .jsx file to the scripts folder in your Photoshop program folder. On Windows the path should be something like this:
    C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)\Preset\Scripts
    On a Mac the folder can be found here:
    Applications > Photoshop CS5 > Presets > Scripts
  • Start up Photoshop. The script will now be available in the menu: Photoshop > File > Scripts
  • If you want to, you can now also assign a keyboard shortcut to the script: Photoshop > Edit > Keyboard Shortcuts

Method 2)

Running a Photoshop script without installing.

  • Go to the Photoshop menu File > Scripts > Browse
  • Navigate to the folder where you downloaded the .jsx file and select it.

Method 3)

This is basically Method 2, but recorded as an action. This way you can quickly access the script and also assign a keyboard shortcut to it. The advantage of this method is that you can keep your scripts in any folder that you want.

  • Photoshop > Actions Window > New Action… > Record
  • Photoshop > File > Scripts > Browse
  • Navigate to the folder where you placed the .jsx file and select it.
  • Photoshop > Actions Window > Stop Recording