Here I’ll show you the script interface and I’ll walk you through the creation of some interesting Curves, that will be the building blocks of advanced creative manipulations.
Where do I get it?
Parametric Curves is available for Photoshop CS6 (Mac/Win) through Adobe Exchange – the new in-app, app-store panel made by Adobe itself. Download and install Exchange if you don’t already have it, then browse the Free extensions and look for Parametric Curves there.
Install Parametric Curves, and find it in the Photoshop Filter menu.
How does it work?
When you launch it, a Curves Adjustment layer is build behind the scene and the Parametric Curves window pops up: you can either pick up a ready made function from the Presets or write your own Javascript in the text area. Click Try to preview the curve, Apply to eventually confirm.
Interface
1 – Curve
This is where the curve is graphed. By default the orientation is Light – that is to say Black (0) is bottom-left, White (255) is top-right, which is the default of RGB and Lab modes; you can switch to Pigment / Ink % (the default for Grayscale and CMYK, White is bottom-left and Black is top-right) with the Display option drop-down menu.
2 – Presets
There are some ready-made Curves you can try in the drop-down menu “Select a preset…”. When you choose one, the function is pasted in the text area (3) and the curve displayed (1).
You’re allowed to save your own Preset clicking the New button (you’ll be asked to enter a label for it). Add as many presets as you want – you can always delete the one you don’t like (but the Default ones) with the Remove button, or Reset them to the default group.
3 – Functions
In this text area you can write your own functions, or modify existing ones. Once you’re done, click the Try button in order to test it either as a graph in the Curve panel and as an actual Curves Adjustment Layer in the file.
4If you’re satisfied with the result, click the Apply button, otherwise you can tweak the function of Cancel back to Photoshop.
4 – Information
The Math Ref. button (which can be toggled on/off) shows a handy reference for the Math. Javascript Object (see below for more information):
The Tutorial button points your browser to the Parametric Curves category page of this website, while the ? button shows copyright informations.
Functions Tutorial
This will help you starting with your own functions. Few basic information:
- The full range is 0-255, where Black = 0 and White = 255 (this is independent on the Display option).
- Functions are in the form: y = f(x) and you’re supposed to write the f(x) part only: so the default Curve (a straight line 45°) is just “x”.
- Functions value is automatically rounded.
- Javascript syntax is allowed.
- More complete Javascript reference is here.
I’m not very good with geometry so let’s start simple:
If you need constants, they must be written as in this example: Math.PI * x + Math.LN2
.
You can write functions as well of course:
You’d better off normalizing the output to fit the 0-255 range, as in the following examples:
You can also use:
-
The so-called ternary operator, in the form of
(condition) ? (true) : (false)
. -
The modulo operator %, for instance
x%10
(which gives the rest of the division by 10 and it’s useful to repeat patterns) -
Logic operators
&&
(and)||
(or), besides==
(equal to) and!=
(not equal to),<
and>
- Nest them when needed, but be careful not to write bad code!
Anything a bit more inspirational on the Creative side?
It’s a bottomless pit as soon as you start experimenting – please see this post full of examples.
Go get it!
Find it on Adobe Exchange, it’s free! And if you think that after all it’s a nice piece of software, please leave a review in Exchange.</div>