diff --git a/moviepy/editor.py b/moviepy/editor.py index 8eebe9bb0..4cb818665 100644 --- a/moviepy/editor.py +++ b/moviepy/editor.py @@ -69,11 +69,13 @@ # These transitions effects are all contained in one file so there is no way to automatically # generate a list of them -for method_name in ["crossfadein", - "crossfadeout", - "slide_in", - "slide_out", - "make_loopable"]: +for method_name in [ + "crossfadein", + "crossfadeout", + "slide_in", + "slide_out", + "make_loopable", +]: exec("VideoClip.%s = transfx.%s" % (method_name, method_name)) @@ -98,6 +100,7 @@ def show(self, *args, **kwargs): """NOT AVAILABLE : clip.show requires Pygame installed.""" raise ImportError("clip.show requires Pygame installed") + VideoClip.preview = preview VideoClip.show = show