Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/Program Files (x86)/ImTOO/Video Converter Ultimate/plugins/ |
# Perform the Effect, assume clip1 & clip2 are supplied black = BlankClip(width=clip1.Width,height=clip1.Height,color=color_black,length=clip1.FrameCount, fps=clip1.FrameRate) white = BlankClip(width=clip1.Width,height=clip1.Height,color=color_white,length=clip1.FrameCount, fps=clip1.FrameRate) # Right->Left -Use MOVE mode for speed tmask = LineAnim(black, white, x_start=clip1.Width+clip1.Width/2, x_end=clip1.Width/2) clipx = clip1.SWScale(colorspace="RGB32") clipy = clip2.SWScale(colorspace="RGB32") slide1 = LineAnim(black, clipx, x_end=0, w_end=0) slide2 = LineAnim(black, clipy, x_start=clip1.Width+clip1.Width/2, x_end=clip1.Width/2) # clip1.FrameCount the 2 slide trans = Overlay(slide1, slide2, mask=tmask).SWScale(colorspace="YV12")