LayerLoop

From Avisynth wiki
Revision as of 16:57, 18 August 2009 by Laur (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Here's a quick function from Dividee to show off the new Layer and Loop filters in AviSynth. Don't put it in your autoload directory since it includes a free function (Animate, see below) and isn't really a general purpose tool anyway.

   function CIRCLE(clip "baseClip", clip "movingClip", float "angle") 
   {
       avWidth = (baseClip.width - movingClip.width) / 2 
       HPos = round(avWidth + cos(angle)*100) 
       VPos = round(avWidth + sin(angle)*100) 
       return baseClip.Layer( movingClip, "Add", 192, HPos, VPos ) 
   } 
   Animate(0, 10000, "CIRCLE", clip1, clip2, 0, clip1, clip2, PI*20)

Back to Shared functions.

Personal tools