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 ( http://forum.corel.com/EN/viewtopic.php?f=104&t=63266 ) 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: https://drive.google.com/open?id=1rfYD1PnwaJAPHfM0rcSUw3YG8h9NBTsW
Compatability: 8 – X9 (tested in 8, XI, X7, x8, X9, 2018)
Requirements: Place in Scripts-Trusted Folder