Home
RecentChanges

Search:

» AviSynth is a powerful video FrameServer for Win32.

AviSynth Links:
»Download
»Learn to script
»FAQ
»Manual
»Discussion fora
»Project page
»External filters
»FeedBack

» You can add pages to this website immediately. No login required.
Edit this document

» AboutAviSynth

 

Avisynth 
Logo

LayerLoop

Here's a quick function from Dividee to show off the new Layer and Loop filters in AviSynth v2.xx. 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 ShareFunctions

SourceForge Logo

 


Edit this document | View document history
Document last modified Sun, 08 Feb 2004 14:24:50