Curves Gradient Map

This script creates a Curves Adjustment Layer based on the currently selected gradient in your materials palette. You can create any gradient you want and then use it to create a gradient map. This script needs to be in your Scripts-Trusted folder as it needs access to your harddrive in order to read the gradient preset file.

There is only one parameter inside the script called “ConvertToRaster” when this is set to 1 it’ll convert the curves adjustment layer into a regular raster layer. By default it’s set to 0, this keeps it a regular adjustment layer.

Thanks to the excellent work and information provided by Teammouse for his own GradientMap scripts ( ) I was able to update my Gradientmap script to use a curves adjustment layer instead of the previous method of using image palettes. The script is almost identical to my previous one with a few simplifications and some extra functions to handle the new way the data is handled.

The end result is faster, with smoother transitions between colors. It also works on multi-layered images whereas the previous one would flatten the image

I’m creating a new post for it because I don’t want to completely delete my old one. Consider the old one a legacy script.


v 1.1 – Added the option to update a current Curves Adjustment Layer instead of making a new one.   Simply select a current Curves Adjustment Layer and run the script, it’ll ask if you want to update the layer, if yes it’ll change the settings.  If no, it’ll make a new layer.
v 1.0 – Initial script upload

Script Name: Curves Gradient Map
Download Link:
Compatability: 8 – X9 (tested in 8, XI, X7, x8, X9, 2018)
Requirements: Place in Scripts-Trusted Folder


So, I was asked a little over a year ago if I knew of a good procedure to create an anaglyph (Red/Cyan 3D) effect similar to the one in this tutorial: … any-image/

For the most part the steps are similar, but we have to use Split and Combine as we don’t have direct access to the channels in an image. I ended up creating a script as an example, though to be honest I used a lot of convoluted methods to make it work. This script is smaller and easier to read and understand.

When you run the script it asks for the shift value and then does all of the hard work for you. Pasting the effect as a new layer in your image. The shift value is anything from -20 to 20 pixels. This allows you to follow the tutorial listed above and give different shift values to the foreground and background.

Download Link: … sp=sharing
Script Requirements: Place in Scripts-Restricted Folder
Compatability: PSP9 – 2018

Perlin Noise

Technically this is able to be performed a lot faster and with far greater options if you use a RenderClouds plugin or KTP Noize plugins.

This is a demonstration of using Python to generate a Perlin Noise image, save it to a bitmap, and then open that bitmap as a new layer in your current image.

This code was cobbled together from several sources including:
Perlin Noise Generator
ActiveState Code Recipes by FB36 – … generator/

Bitmap Class
GitHub by voidW0rd –

Cassel – OpenAsNewLayer-Rename – … oo4lFkxQWs

There is only one parameter and that’s the file location. It’s one of the first lines in the Do function, you can change where it saves the temporary file. However, the folder you indicate should already exist as the script will not create the folder for you.

Here is a video demonstrating its use and showing you where in the code to edit the file location variable. … sp=sharing

Download Link: … m9WWUJqc0k
Script Requirements: Scripts-Trusted Folder
Compatability: PSP9 – 2018

Gradient Map

Based on the script by the same name by Gary Barton this script is faster as it calculates the gradient manually rather than relying on the eyedropper tool.

This script attempts to emulate the Gradient Map feature found in Photoshop.

To use it, just select a gradient in the materials palette, and run this script. PSP will attempt to map that gradient’s values to the image’s luminosity values. To invert the colors just select “Invert” on the color picker.

Download Link: … lZBYTlrZ0E
Compatability: 8 – X9 (tested in 8, 9, XI, X7, x8, X9)
Requirements: Place in Scripts-Trusted Folder

Blog at

Up ↑