blazerqb11
26th August 2009, 14:41
I can't seem to get GraMaMa working in a function. No matter how simple the function I always get this error:
Avisynth open failure:
Script error: Invalid arguments to function "Gramama"
Here is the simplest function I could think of using GraMaMa in order to rule out as many other possible problems as I could. Can anyone tell me what I'm doing wrong?
Function circle(clip video1, clip video2)
{
overlay( video1, video2, mask=Gramama(1,100,100,20, binarize=true) )
}
circle( Trim(0,100), Trim(200,300) )
By the way, the follow code which is not a function, but in my understand does the exact same thing as the previous function should, works with no problems:
video1 = Trim(0,100)
video2 = Trim(200,300)
overlay( video1, video2, mask=Gramama(1,100,100,20, binarize=true) )
I'm basically just using GraMaMa to make a circular mask, so alternatively, if anyone knows of another function that I could use to achieve the same effect, let me know.
Avisynth open failure:
Script error: Invalid arguments to function "Gramama"
Here is the simplest function I could think of using GraMaMa in order to rule out as many other possible problems as I could. Can anyone tell me what I'm doing wrong?
Function circle(clip video1, clip video2)
{
overlay( video1, video2, mask=Gramama(1,100,100,20, binarize=true) )
}
circle( Trim(0,100), Trim(200,300) )
By the way, the follow code which is not a function, but in my understand does the exact same thing as the previous function should, works with no problems:
video1 = Trim(0,100)
video2 = Trim(200,300)
overlay( video1, video2, mask=Gramama(1,100,100,20, binarize=true) )
I'm basically just using GraMaMa to make a circular mask, so alternatively, if anyone knows of another function that I could use to achieve the same effect, let me know.