View Single Post
Old 25th July 2009, 09:42   #10  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by thewebchat View Post
I originally didn't add them because I was unsure how they worked when unset, but it seems they default to empty strings.
Code:
sfile = default(sfile, "")
... etc ...
Actually, there is no need to set any default values inside your function if all you are doing is passing them on to another function (in this case dfttest). That way you don't need to know the internal details of the other function.
Quote:
User defined script functions

A void ('undefined') value can be passed on to another function as one of its optional arguments. This is useful when you want to write a wrapper function that calls another function, preserving the same defaults.
Gavino is offline   Reply With Quote