How to code accurate Color Balance values within copresets ?
See question in the title.
I would like to make use of the correspondence for the color values set in the Color Balance tool with the color values stored within the .copreset files.
For example, my goal is to create a range of 3 related Color Balance copresets files.
- copreset file 1:
- yellow hue, saturation and lightness in highlights
- pink hue in shadows, with 20% saturation 50% lightness
- copreset file 2:
- same yellow in highlights
- same pink in shadows but with 40% saturation
- copreset file 3:
- same yellow in highlights
- same pink in shadows but with 60% saturation
Therefore I would like to create 1 copreset file for option 1 and then manually edit 2 copies of the xml coprest file with accurate HSL values.
Here is the sample xml code line for the below "pink" shadow adjustments
<E K="ColorBalanceShadow" V="1;0.936347246170044;0.979828298091888" />
Just, what do these numbers mean? 1 ; 0.936... ; 0.979...
-
maybe.. I think these numbers are RGB coordinates of color value.
choose your color @ HSB mode
HUE : 0 ~ 360
SATURATION : 0 ~ 30
BRIGHTNESS : ? (I've only tested at master color balance so I set this value to 100)
change its color value to rgb then convert 0 ~ 255 value to 0.0 ~ 1.0 scale.
I used linear interpolation expression.
0.0 to 1.0 value = (VALUE-0)/(255-0)*(1-0)+0
ex) pink, 40%
hue = 320, sat = 12 (30 * 40%), brightness = 100
so I can get rgb value of 255, 224, 245
then convert to 0.0 ~ 1.0 scale.. and I got some numbers
1;0.878431373;0.960784314
it's not a clear answer but hope this helps you well!
0 -
Interesting ! I will definitely give it a try.
I’m curious about how you came up with the 0~30 range for Saturation. It’s definitely not as obvious as 0 to 360 or 0 to 100...0 -
I checked the values of various colors with many or less saturation.
then I have found that the maximum and minimum values of the color do not exceed that satruration range of 0 to 30.annnd.. It's just my guess. X) Cheer up to discover more!!
this is simple excel sheet of value convertor i wrote.
0
Post is closed for comments.
Comments
3 comments