Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'set_position' not working properly with variable having number but working when passing static number #2078

Closed
pankajmcs opened this issue Dec 7, 2023 · 2 comments
Labels
question Questions regarding functionality, usage

Comments

@pankajmcs
Copy link

pankajmcs commented Dec 7, 2023

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)

@pankajmcs pankajmcs added the question Questions regarding functionality, usage label Dec 7, 2023
@SohamTilekar
Copy link

Bro Same Problem I have a Solution. #2084 Bug Bug Report Hase the jugad(Temporary Solution) for the Problem

@keikoro
Copy link
Collaborator

keikoro commented Feb 10, 2024

Closing as duplicate of the linked issue. Thx, @SohamTilekar for pointing it out.

@keikoro keikoro closed this as completed Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions regarding functionality, usage
Projects
None yet
Development

No branches or pull requests

3 participants