Thread: Avisynth+
View Single Post
Old 8th January 2019, 05:08   #4395  |  Link
Stereodude
Registered User
 
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
Quote:
Originally Posted by davidhorman View Post
Code:
X=480
blankclip(width=960,height=1080,length=X)
stackhorizontal(last,last.invert,last)
animate(last,0,X-1,"crop",0,0,1920,0,960,0,1920,0)
mask=(last+last.reverse).loop(100)

a=colorbars(width=1920,height=1080)
b=version.pointresize(1920,1080)

overlay(a,b,mask=mask)
There's a few minor "mistakes" in there with the motion of the mask (I had a similar mistake in my example also) and I wanted to start the mask on the other side, but I certainly wouldn't have been able to put together that combo of filters myself. Big !

I think this is corrected
Code:
X=480
blankclip(width=960,height=1080,length=X+1)
clip1=stackhorizontal(last,last.invert,last)
clip2=clip1.trim(0,X-2)
mask=(animate(clip1,0,X,"crop",960,0,1920,0,0,0,1920,0)+animate(clip2,0,X-1,"crop",2,0,1920,0,960,0,1920,0)).loop(100)

a=colorbars(width=1920,height=1080)
b=version.pointresize(1920,1080)

overlay(a,b,mask=mask)
Stereodude is offline