Transitions.avsi — Transition between two clips

This contains several common transitions to move between clips.

These transitions accept an “easing” function which determines how the transition applies. See Easings.avsi for the complete list of easings.

DissolveEasing(first, second, frames, easing)
Parameters:
  • first (clip) – the first clip (plays before the transition)
  • second (clip) – the second clip (plays after the transition)
  • frames (int) – the number of frames which the transition takes place over
  • easing (string) – the easing function to use to do the transition

Identical to Dissolve (mostly) except uses the given easing function. Unlike the rest of panning transitions, this clamps the easing function to the 0..1 range. (Values less than 0 are treated as 0, greater than 1 are treated as 1.)

Pan(first, second, frames, dx, dy[, string easing[, clip background]])
Parameters:
  • first (clip) – the first clip (plays before the transition)
  • second (clip) – the second clip (plays after the transition)
  • frames (int) – the number of frames which the transition takes place over
  • dx (int) – the x direction (-1 = left, 1 = right, 0 = no movement)
  • dy (int) – the y direction (-1 = up, 1 = down, 0 = no movement)
  • background (clip) – (optional) a clip behind the first and second clip. Defaults to a black BlankClip. Only really necessary if you have alpha in the clips or if you’re going for a diagonal pan (where both dx and dy are non-zero), where it will be visible.
  • easing (string) – the easing function to use to do the transition, defaults to EaseInLinear

Pan from the first clip to the second clip in the given direction.

PanLeftToRight(first, second, frames[, easing[, clip background]])

Pan() starting with the first clip, moving to the second clip, left-to-right. This is simply:

Pan(first, second, frames, -1, 0, easing, background)
PanRightToLeft(first, second, frames[, easing[, clip background]])

Pan() starting with the first clip, moving to the second clip, right-to-left. This is simply:

Pan(first, second, frames, 1, 0, easing, background)
PanTopToBottom(first, second, frames[, easing[, clip background]])

Pan() starting with the first clip, moving to the second clip, top-to-bottom. This is simply:

Pan(first, second, frames, 0, -1, easing, background)
PanBottomToTop(first, second, frames[, easing[, clip background]])

Pan() starting with the first clip, moving to the second clip, bottom-to-top. This is simply:

Pan(first, second, frames, 0, 1, easing, background)
SlideIn(first, second, frames, dx, dy[, string easing[, clip background]])
Parameters:
  • first (clip) – the first clip (plays before the transition)
  • second (clip) – the second clip (plays after the transition)
  • frames (int) – the number of frames which the transition takes place over
  • dx (int) – the x direction (-1 = move left starting at the right, 1 = move right starting at the left, 0 = no movement)
  • dy (int) – the y direction the y direction (-1 = move up starting at the bottom, 1 = move down starting at the top, 0 = no movement)
  • background (clip) – (optional) a clip behind the first and second clip. Defaults to a black BlankClip. Only really necessary if you have alpha in the clips.
  • easing (string) – the easing function to use to do the transition, defaults to EaseInLinear

Slide the second clip in over the first in the given direction.

SlideInLeft(first, second, frames[, string easing[, clip background]])

SlideIn() the second clip in from the right, moving left. This is simply:

SlideIn(first, second, frames, -1, 0, easing, background)
SlideInRight(first, second, frames[, string easing[, clip background]])

SlideIn() the second clip in from the left, moving right. This is simply:

SlideIn(first, second, frames, 1, 0, easing, background)
SlideInUp(first, second, frames[, string easing[, clip background]])

SlideIn() the second clip in from the bottom, moving up. This is simply:

SlideIn(first, second, frames, 0, -1, easing, background)
SlideInDown(first, second, frames[, string easing[, clip background]])

SlideIn() the second clip in from the top, moving down. This is simply:

SlideIn(first, second, frames, 0, 1, easing, background)
SlideOut(first, second, frames, dx, dy[, string easing[, clip background]])
Parameters:
  • first (clip) – the first clip (plays before the transition)
  • second (clip) – the second clip (plays after the transition)
  • frames (int) – the number of frames which the transition takes place over
  • dx (int) – the x direction (-1 = move left starting at the right, 1 = move right starting at the left, 0 = no movement)
  • dy (int) – the y direction the y direction (-1 = move up starting at the bottom, 1 = move down starting at the top, 0 = no movement)
  • background (clip) – (optional) a clip behind the first and second clip. Defaults to a black BlankClip. Only really necessary if you have alpha in the clips.
  • easing (string) – the easing function to use to do the transition, defaults to EaseInLinear

Slide the first clip out over the second in the given direction.

SlideOutLeft(first, second, frames[, string easing[, clip background]])

SlideOut() the first clip out to the left, revealing the second. This is simply:

SlideOut(first, second, frames, -1, 0, easing, background)
SlideOutRight(first, second, frames[, string easing[, clip background]])

SlideOut() the first clip out to the right, revealing the second. This is simply:

SlideOut(first, second, frames, 1, 0, easing, background)
SlideOutUp(first, second, frames[, string easing[, clip background]])

SlideOut() the first clip up out of the screen, revealing the second. This is simply:

SlideOut(first, second, frames, 0, -1, easing, background)
SlideOutDown(first, second, frames[, string easing[, clip background]])

SlideOut() the first clip down out of the screen, revealing the second. This is simply:

SlideOut(first, second, frames, 0, 1, easing, background)
CreateMovingTransition(first, second, background, frames, easing, dx, dy, transition)
Parameters:
  • first (clip) – the first clip (plays before the transition)
  • second (clip) – the second clip (plays after the transition)
  • background (clip) – a clip behind the first and second, only really necessary in cases where the clips have alpha or the movement reveals a blank background.
  • frames (int) – the number of frames which the transition takes place over
  • easing (string) – the easing function to use to do the transition
  • dx (int) – the x direction (-1 = left, 1 = right, 0 = no movement)
  • dy (int) – the y direction (-1 = up, 1 = down, 0 = no movement) clip. Defaults to a black BlankClip. Only really necessary if you have alpha in the clips or if you’re going for a diagonal pan (where both dx and dy are non-zero), where it will be visible.
  • transition (string) – the function Animate should call

Utility function to create a transition that involves moving one clip over another. The majority of other transitions in this file use this to do the bulk of the work.