Mug Funky
6th January 2004, 14:35
hiyah. i'm here to ask a newbie question (OMG!)...
when writing a function for avisynth that has arguments, how should i handle it if no argument is given?
for instance, i've included an optional post-processing in my semi-smart bob function, and i want it to default to post=true if no argument is given (it's more user friendly).
what would the syntax be for that?
example:
function FunkyBob(clip c, bool "post") {
post = (post == [null]) ? true
[insert the rest of script here :)]
what should i put where i currently have [null]?
when writing a function for avisynth that has arguments, how should i handle it if no argument is given?
for instance, i've included an optional post-processing in my semi-smart bob function, and i want it to default to post=true if no argument is given (it's more user friendly).
what would the syntax be for that?
example:
function FunkyBob(clip c, bool "post") {
post = (post == [null]) ? true
[insert the rest of script here :)]
what should i put where i currently have [null]?