View Single Post
Old 16th February 2021, 14:32   #849  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Just thought I'd point this out in case P had not seen it in Usage.
https://forum.doom9.org/showthread.p...11#post1936011

Quote:
Originally Posted by StainlessS View Post
Code:
Function SpotLess2(clip c, int "RadT", int "Spot", bool "DeGrain", int "RadT", int "ThSAD", int "ThSAD2",
    \  int "pel", bool "chroma", int "BlkSz", Int "Olap", bool "tm", Bool "glob") {
Strangely, it does not throw an error due to 2 different instances of the formal parameter "RadT", maybe a bit more checking needed in Avs+.
EDIT: I have not tried explicitly providing all args (un-named) to see what happens, and what value RadT=Default(RadT,42) might acquire,
where both instances of supplied RadT presented different numbers.

EDIT: OK, I could not resist it.
Code:
Function Testing123(clip c,int arg1, int "Arg2",int "Arg3", int "Arg4",int "Arg2",int "Arg5",int "Arg6") {
    return Default(Arg2,-1)
}

BlankClip(Width=64,height=64,length=1,pixel_type="YV12").killaudio
z=Testing123(last,1,1001,3,4,1002,5,6)
Subtitle(string(z))


EDIT: Maybe it don't matter too much, obviously not a popular script bug
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 16th February 2021 at 15:00.
StainlessS is offline   Reply With Quote