Coder Social home page Coder Social logo

python-task-automation's Issues

reduce velocity at a half in a point

hi,

Hello, thanks for the editing examples with python.

I have a question if you can help me I would like to have a clip how can I post-produce a slow down in one time of the clip. In other words, the clip goes in real time until it reaches a point and goes to 50% speed (retime) for x seconds with a smooth transition between speeds (spline curve, flat vecier).

For example, when you have a clip shooting a basket, tell it that in the second 25 it is the slowdown point that lasts for 4 seconds and then continues with normal speed.

that works but with a sin and I don't have control of it

clip2.fl_time( lambda t: t+0.5+ abs(math.sin(t))*0.5)

I've tried to make a function to be able to see but I can't.

def tiempo(t):
	print (t)
	t=t+1
	#lambda t: t+0.5+ abs(math.sin(t))*0.5
	return t
	
clip2 = clip2.fl_time( tiempo(t) ).set_duration(20)

If you dont mind help me. reggards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.