Log in

View Full Version : How to make tweak color slider?


Serbianboss
30th November 2006, 12:23
How to make proper slider for Tweak filter. Slider which include: hue,saturation, brightness,contrast in avsp ?

rfmmars
30th November 2006, 18:55
How to make proper slider for Tweak filter. Slider which include: hue,saturation, brightness,contrast in avsp ?

This is the part from by Master Filter


HDRAGC(avg_lum=[<"Screen Radial (128)", 128, 2000, 161>],mode=[<"Mode (2)", 0, 2, 2>],passes=[<"Resample (4)", 1, 9, 4>],shift_u=[<"U Color Yel. Blue (0)", -100, +100, 2>], shift_v=[<"V Color Cyan Magenta (0)", -100, +100, 2>],protect=[<"Protect (2)", 0, 2, 1>],coef_gain=[<"Shadow Brightness (1)", 0.00, 0.5, 0.25>],max_gain=[<"Max Level (3)", 0, 8, 3.1>],corrector=[<"Corrector ((0)", 0.01, 1.5, 1.03>],reducer=[<"Reducer (0.5)", 0, 2, 2.0>],avg_window=[<"Frames Adverage (30)", 0, 120, 30>],black_clip=[<"Black Clip (0.0)", 0.0, 2, 1.5>],max_sat=[<"Max Satuation (9)", 0, 20, 20>],min_sat=[<"Min Satuation (1)", 0, 2, 0.0>],coef_sat=[<"Dark Color Level (1)", 0, 2, 0.7>])
Tweak([<"Hue (0)", -60, 60, 1.1>])
Converttorgb24
RGBadjust([<"Red (0)", 0.00, 2, 1.05>],[<"Green (0)", 0.00, 2, 0.98>],[<"Blue (0)", 0.00, 2, 0.88>])



Just add the other tweat sliders using "Hue" code as an example.

Good Luck,

Richard

Serbianboss
1st December 2006, 12:00
I think that Tweak([<"Hue (0)", -60, 60, 1.1>]) is not good.

Shouldn't be:


TWEAK([<"hue", -180.0, 180.0, 0.0>],[<"sat", 0.0, 10.0, 1.0>],[<"bright", -255.0, 255.0, 0.0>],[<"cont", 0.0, 10.0, 1.0>])


In documentation sais: Hue: (-180.0 to +180.0, default 0.0)

From that -180 is the Min value, +180 is Max value and 0.0 is default value. I think that this is proper way. What others think about that?

rfmmars
1st December 2006, 17:04
I think that Tweak([<"Hue (0)", -60, 60, 1.1>]) is not good.

Shouldn't be:


TWEAK([<"hue", -180.0, 180.0, 0.0>],[<"sat", 0.0, 10.0, 1.0>],[<"bright", -255.0, 255.0, 0.0>],[<"cont", 0.0, 10.0, 1.0>])


In documentation sais: Hue: (-180.0 to +180.0, default 0.0)

From that -180 is the Min value, +180 is Max value and 0.0 is default value. I think that this is proper way. What others think about that?

I choose those values so I could have a finer resolution when adjusting. For me I would never have need to go the full circle, to each its own.

Thanks
Richard

Serbianboss
1st December 2006, 17:12
Value -180 and +180(for hue) is very rarely/never used. But i make slider as documentation sais.
Anyway thanks for help