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) # Bottom->Top -Use MOVE mode for speed tmask = LineAnim(black, white, y_start=clip1.Height, h_start=0, y_end=clip1.Height/2, h_end=clip1.Height) clipx = clip1.SWScale(colorspace="RGB32") clipy = clip2.SWScale(colorspace="RGB32") slide1 = LineAnim(black, clipx, y_end=-clip1.Height/2) slide2 = LineAnim(black, clipy, y_start=clip1.Height, h_start=0, y_end=clip1.Height/2, h_end=clip1.Height) # clip1.FrameCount the 2 slide trans = Overlay(slide1, slide2, mask=tmask).SWScale(colorspace="YV12")