Post
by EvaFan » Thu Dec 25, 2008 2:06 pm
ahhhh... I thought you were talking about a before and after installation of the new amvapp causing problems for some or all of your plugins not the actual plugin "beforeafter()"
##################################################################
# BeforeAfter by Absolute Destiny and Corran (Eric Parsons) #
# e.g. #
# beforeafter(clip, placement, filters) #
# #
# 1 for vertical splitscreen, 0 for horizontal splitscreen #
##################################################################
function beforeafter(clip a, int "placement", string "filters"){
placement = Default(placement, 1)
Assert((Float(Width(a))/16)==Round(Width(a)/16), "Source image width must be a multiple of 16")
b = Eval("a."+filters)
c = (placement==1) ? StackHorizontal(a.Crop(0,0,-((Ceil(Float(Width(a))/32))*16),0).\
Subtitle("before"),b.Crop(((Floor(Float(Width(a))/32))*16),0,0,0).\
Subtitle("after")) :StackVertical(a.Crop(0,0,0,-Height(a)/2).Subtitle("Before"),b.\
Crop(0,Height(a)/2,0,0).Subtitle("After"))
Return c
}
Just put that on a notepad and save it as a .avsi in your plugins folder. If it isn't loading automatically your gonna have to load it yourself then. Just so you know though, there are programs out there that let you see changes from your script real-time. I use AvisynthEditor. There are other programs though.
"The people cannot be [...] always, well informed. The part which is wrong will be discontented, in proportion to [...] the facts they misconceive. If they remain quiet under such misconceptions, it is lethargy, the forerunner of death to public liberty. What country can preserve its liberties, if it's rulers are not warned [...] that this people preserve the spirit of resistance? The tree of liberty must be refreshed from time to time, with the blood of patriots and tyrants."-Thomas Jefferson