Archive: AVS scripting language?


22nd October 2002 18:57 UTC

AVS scripting language?
I think turning AVS from a collection of filters into a scripting language would be awesome.

It could support the filters as separate functions, use variables, loops, etc. For example, the syntax for SuperScope would be:

Render->SuperScope("n=800","","","x=i*2-1;y=v");

Variables would be interpolated into "" strings, etc. You could also programmatically create new buffers, mix different buffers into a new one: (Omitting a buffer assumes the global buffer, the one that is displayed when the script reaches the end.)

$buf=new Buffer; #create new buffers
$buft=new Buffer;
#render in each buffer
$buf->Render->SuperScope("n=800","","","x=i*2-1;y=v");
$buft->Render->SuperScope("n=800","","","y=i*2-1;x=v");
#blend them together into the main buffer
Blend('50/50',$buf,$buft);

Writing presets would be much more complex, but amazing things could be done with it.

This would have to be implemented in AVS for Winamp2, because I think Winamp3's AVS is wayyyy to slow.


23rd October 2002 08:24 UTC

Like it isn't hard enough to do avs right now...
Surely it could (maybe) do wonderful things, but it could also take artists away from avs since avs would be more coding then and avs isn't always about code. Also you might want to remember that not everybody can code/script.

Bad idea, because then i would have to quit doing AVS :down: :hang:


24th October 2002 22:32 UTC

Another option would be yo have a dual-mode AVS... a filter mode and a script mode.


25th October 2002 03:05 UTC

It could just be me, but I thought AVS was created so people could EASILY create visualizations. Here's an idea for you: As long as you're thinking of completely changing AVS, why don't you make a new plugin with your own ideas on your own time?


25th October 2002 08:07 UTC

It could just be me, but I thought AVS was created so people could EASILY create visualizations.
Word.

That was basicly what i ment, but i think i said it in a bit confusing way :D

25th October 2002 13:45 UTC

Yeah, to implement your suggestion, AVS would would have to be rewritten from the ground up. Besides that whole varibale and loop think has been on the list for a while. :p