Log in

View Full Version : ColorCorrectionFunctions and NamedArguments, Question


Rachima
23rd May 2007, 21:18
Hi,

may be I've found some 'inconsistency' with the different Colorfunctions of AviSynth, or may be something in my System works not as it should be.

For example I can call:

Tweak(hue=12)

with "named Argument" (hue=)
or

ColorYUV(gain_y=6, off_y=-6, gamma_y=16)


But I get Errors, when I try to call

RGBAdjust(red=1,green=1.3)
or
Levels(gamma=1.3)

Errors are like: "Function x has no named Argument y"

Also I've seen in a Post that it is possible to pass Analyze=true to RGBAdjust, what isn't documented in the Docs shipped with AviSynth 2.57, but it works!

So, why I cannot call these functions with named arguments?
And why does RGBAdjust work with "Analyze=true" but not with "red=1"?


Please help, otherwise I think I went crazy ;)
Rachima

krieger2005
23rd May 2007, 21:27
Not all filters support named arguments. The filter must give a name for the arguments internaly. Only if this is done you can use named arguments.

Rachima
23rd May 2007, 21:39
Hi,

Not all filters support named arguments. The filter must give a name for the arguments internaly. Only if this is done you can use named arguments.

Aha, ok. :(

Rachima

Fizick
23rd May 2007, 21:49
Some time ago one of developer said to me, that it is not always easy to select proper parameter name :D

Rachima
23rd May 2007, 22:15
Hi Fizick,

Some time ago one of developer said to me, that it is not always easy to select proper parameter name :D

yeah, may be. But in case of these AviSynth functions one simply could use these ones from Documentation ;)

RGBAdjust(clip, float "red", float "green", float "blue", float "alpha")

Levels(clip, int input_low, float gamma, int input_high, int output_low, int output_high, bool coring)


It's a hard thing, to build a GUI for 4 ColorCorrectionFunctions, because everyone has to be handled unique. Not even full parallels of two. Well, well.

Have you tried new intermediate version of vcc4avsp (http://forum.doom9.org/showthread.php?p=1005599#post1005599)?


Rachima

Fizick
23rd May 2007, 23:05
IMO, coloryuv is quite enough. (may be +rgbadjust).

I tried vcc4avsp. it is not very intuitive what i must to click or press to make it works.

Rachima
24th May 2007, 10:44
IMO, coloryuv is quite enough. (may be +rgbadjust).

I think, ColorYUV and RGBAdjust must be. And for beginners, I think Tweak is more suitable than ColorYUV.

I tried vcc4avsp. it is not very intuitive what i must to click or press to make it works.

Hhm, how could it be better?

Rachima