View Single Post
Old 29th June 2003, 20:42   #6  |  Link
stickboy
AviSynth Enthusiast
 
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
Quote:
Originally posted by neuron2
Greyscale takes no arguments, so it can't be animated.
You can work around this by creating your own user-defined function to act as a wrapper.
Code:
function GreyscaleWrapper(clip c, string unused)
{
    return c.Greyscale()
}

ApplyRange(1416, 1801, "GreyscaleWrapper", "")
Or, a more general version:

Code:
function NoArgFunctionWrapper(clip c, string f)
{
    c
    return Eval(filter + "()")
}

ApplyRange(1416, 1801, "NoArgFunctionWrapper", "Greyscale")

Last edited by stickboy; 30th September 2006 at 20:01.
stickboy is offline   Reply With Quote