Hi,
Actually I am creating video clip by stiching multiple image clips with slide effect, for effect I am using Lambda when passing static numbers at x,y position all works fine but when I am passing custom variable with proper int type at x,y cordinates its not working properly, kindly let me what causing this issue.
Code:
slide1 = ImageClip(img.jpg ,duration=3).set_duration(3).set_start(timer 3 ).set_position(lambda t: ( 50 + (300-25)(t/1) if (50 + (300-20)*(t/1) < xPos1) else xPos1,yPos1)).crossfadein(.5).fx(normalize_image)
Hi, Actually I am creating video clip by stiching multiple image clips with slide effect, for effect I am using Lambda when passing static numbers at x,y position all works fine but when I am passing custom variable with proper int type at x,y cordinates its not working properly, kindly let me what causing this issue. Code: slide1 = ImageClip(img.jpg ,duration=3).set_duration(3).set_start(timer 3 ).set_position(lambda t: ( 50 + (300-25)(t/1) if (50 + (300-20)*(t/1) < xPos1) else xPos1,yPos1)).crossfadein(.5).fx(normalize_image)