Script - Curves Gradient Map

Moderator: Kathy_9

Post Reply
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Script - Curves Gradient Map

Post by LeviFiction »

curvesgradientmap1[1].jpg
Script Name: Curves Gradient Map
Download Link: https://drive.google.com/open?id=1rfYD1 ... YG8h9NBTsW
Compatability: 8 - X9 (tested in 8, XI, X7, x8, X9, 2018)
Requirements: Place in Scripts-Trusted Folder

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 hard drive 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.

How To Use:
1) Simply select/create a gradient and set it as the foreground color in the materials palette.
2) Run this script


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.

History:

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
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.
Last edited by LeviFiction on Wed Jul 04, 2018 5:11 am, edited 1 time in total.
https://levifiction.wordpress.com/
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: Script - Curves Gradient Map

Post by LeviFiction »

UPDATE: Added the option to update a currently selected curves adjustment layer instead of always making a new one.
https://levifiction.wordpress.com/
Dijenga
Posts: 67
Joined: Wed Mar 06, 2013 12:26 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Micro Star International
processor: Advanced Micro Devices
ram: 8gb
Video Card: ati 5750
sound_card: Soundblaster X-Fi
Hard_Drive_Capacity: 1tb+
Monitor/Display Make & Model: 2 ea 23" HP Monitors
Corel programs: PSP(U) X8,X9,2018 VS(U) X8 & X10
Location: Arkansas, USA

Re: Script - Curves Gradient Map

Post by Dijenga »

Thanks Levi ... I like that I can update the layer by having it selected and re-running the script. Helps me tweak what I want to do.
Still learning, but here are a few of my favorite shots: https://www.500px.com/ccjr221
Post Reply