Log in

View Full Version : How do I make a transition using overlay


Hotte
28th June 2020, 20:32
Hi,

I like to create a transition with overlay only and current_frame as trigger. For example if the transition takes 20 frames I would like to go

from clpNew = Overlay(clpOld,clpNew,opacity=0.05)
to: clpNew = Overlay(clpOld,clpNew,opacity=1.0)

I know to access current_frame I need to use ScriptClip, but I do not succeed to get even a simple statement to work. This crashes:


clpNew = ScriptClip(clpOld,"""Overlay(clpOld,clpNew,opacity=0.05)""")


Can sbdy help ?

manono
29th June 2020, 03:11
You can't use the Dissolve (http://avisynth.nl/index.php/Dissolve) filter?

Hotte
29th June 2020, 10:19
Thanks. I thought Dissolve would not make it because I am doing a full clip.length transition of the same clip filtered and unfiltered to achive a fading filter effect.

But your hint let me think and try again and now I nailed it with Dissolve.

Anyway would have been interesting to see, if/how current_frame and overlay interact.

But my original issue is solved.:thanks: