Personal blog of Edvinas Petrauskas. Click here to go back to the portfolio: http://edpetrauskas.co.uk
Saturday, 13 June 2015
Photoshop PBR value swatcher
I was looking to start a swatch set to store base sRGB albedo values for different surfaces, so I wrote a quick Photoshop script to make the process faster and less tedious.
It's pretty self explanatory, but I'll quickly go through it. You can input linear values (in either 0-1 or 0-255 range) as well as names into the textfield, separated by a comma and one per line i.e.:
0.25,grass
0.04,charcoal
0.85,fresh snow
and the script will loop through them all, convert the values to sRGB and add them into your current swatch set.
There is a checkbox called Colorize, when ticked it pops up a color picker dialog for each value before adding it as a swatch, so you can tweak the color if you don't want it to be a greyscale value.
You can find the values on the charts that are available or somewhere else on the internet.
Download the script here:
http://edpetrauskas.co.uk/downloads/pbr_value_swatcher.js
Place it in your "photoshopdirectory\Presets\Scripts" and access it through File->Scripts in Photoshop, or make an Action or something and bind it to a key :)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment