FreQi
7th January 2002, 01:02
I'm trying to write a function that'll fade one frame into another, overwriting any frames in-between them. For example, let's say I want to take frames 100 and 105, and make frame 100 fade into 105, overwriting frames 101, 102 103 and 104. I have ben using FreezeFrame to just pause frame 100 for frames 101 and 102 and then pause frame 105 durring frames 103 and 104, but I'd like to get the frames to actually blend into each other instead of just pause.
I tried using the Animate function, but I get an error saying "expecting , or )" on column 46 when I use this:
Animate(100,105,"FreezeFrame", 100,100,100 105,105,105)
and the same error on column 35 with this:
Animate(100,105,"Trim", 100,100 105,105)
but if I put it in a function, I don't get any errors, but I also don't get any results... I've tried the following functions and none of them seem to cause a change yet alone the effect I want. Anyone have any idea of what I need to do?
FadeInto(100,105)
function FadeInto(clip clip, int frstfrm, int lastfrm)
{ return clip.Animate(frstfrm,lastfrm,"FreezeFrame", frstfrm,lastfrm,frstfrm, frstfrm,lastfrm,lastfrm)
}
function FadeInto(clip clip, int frstfrm, int lastfrm)
{ return clip.Animate(frstfrm,lastfrm,"FreezeFrame", frstfrm,frstfrm,frstfrm, lastfrm,lastfrm,lastfrm)
}
# this one returns a single frame video clip
function FadeInto(clip clip, int frstfrm, int lastfrm)
{ return clip.Animate(frstfrm,lastfrm,"Trim", frstfrm,frstfrm, lastfrm,lastfrm)
}
I tried using the Animate function, but I get an error saying "expecting , or )" on column 46 when I use this:
Animate(100,105,"FreezeFrame", 100,100,100 105,105,105)
and the same error on column 35 with this:
Animate(100,105,"Trim", 100,100 105,105)
but if I put it in a function, I don't get any errors, but I also don't get any results... I've tried the following functions and none of them seem to cause a change yet alone the effect I want. Anyone have any idea of what I need to do?
FadeInto(100,105)
function FadeInto(clip clip, int frstfrm, int lastfrm)
{ return clip.Animate(frstfrm,lastfrm,"FreezeFrame", frstfrm,lastfrm,frstfrm, frstfrm,lastfrm,lastfrm)
}
function FadeInto(clip clip, int frstfrm, int lastfrm)
{ return clip.Animate(frstfrm,lastfrm,"FreezeFrame", frstfrm,frstfrm,frstfrm, lastfrm,lastfrm,lastfrm)
}
# this one returns a single frame video clip
function FadeInto(clip clip, int frstfrm, int lastfrm)
{ return clip.Animate(frstfrm,lastfrm,"Trim", frstfrm,frstfrm, lastfrm,lastfrm)
}