function insertclip(clip clip1, clip clip2, int framebefore, int frameafter)
{
new = clip1.Trim(0,framebefore).ConverttoYV12()
middle = clip1.Trim(framebefore+1,frameafter-1).ConverttoRGB32()
end = clip1.Trim(frameafter,0).ConverttoYV12()
middleadded = Layer(middle, clip2).ConverttoYV12()
good = new + middleadded + end
return good
}
vid = AVISource("C:\Documents and Settings\Robert\Desktop\workdamnit.avs")
afx = AVISource("C:\Documents and Settings\Robert\Desktop\comp.avi")
merge = insertclip(vid,afx,0,3261)
return merge