Please, any newbie might be able to help, i'm dying here

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
raiseer
Joined: Fri May 08, 2009 9:01 am
Location: Germany
Contact:
Org Profile

Please, any newbie might be able to help, i'm dying here

Post by raiseer » Sat May 09, 2009 4:59 pm

Hi!
The following might seem stupid to you, but I'm beginning to pull out my hair by now:
Where the hell can I find the basic commands for avisynth? I read dozens of faqs and introductions and forums and whatever.
But I can NOWHERE find just the most basic basics like how to use common commands like "for", "while", "repeat" or whatever.
It's so frustrating.
PLEASE help me - whether it might be that i'm completely stupid or if there really is a lack of groundinformation on the internet regarding this stuff.
I'm really dying here...

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Re: Please, any newbie might be able to help, i'm dying here

Post by Zarxrax » Sat May 09, 2009 5:26 pm

The basic commands are found in the avisynth documentation. Under start menu > avisynth 2.5 > avisynth documentation.

You aren't finding stuff like 'for' or 'while' because they dont exist in avisynth.

User avatar
raiseer
Joined: Fri May 08, 2009 9:01 am
Location: Germany
Contact:
Org Profile

Re: Please, any newbie might be able to help, i'm dying here

Post by raiseer » Sat May 09, 2009 5:54 pm

oh. seriously? ok than thanks. no wonder i did not find anything.

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Please, any newbie might be able to help, i'm dying here

Post by mirkosp » Sat May 09, 2009 6:41 pm

Zarxrax wrote:You aren't finding stuff like 'for' or 'while' because they dont exist in avisynth.
Alan you shouldn't say something doesn't exist just 'cause you don't know about it. :P
The if and the for are available. As for the while, it's still on a "TODO" status.
Here, have a read: http://avisynth.org/mediawiki/Block_statements
Image

User avatar
raiseer
Joined: Fri May 08, 2009 9:01 am
Location: Germany
Contact:
Org Profile

Re: Please, any newbie might be able to help, i'm dying here

Post by raiseer » Sun May 10, 2009 2:10 am

thank you very much!
the thing is: I want to alter filter-parameters for different frames.
for example: to merge a clip into another while I want the opacity of the overlay to change based on a given pattern, e.g. alternating between clip-priority.
or in pascal-like tongue:

var opacity:real;
for i := 0 to framecount-1 do
begin
setopacity(opacity,i)
merge(clip1[frame i],clip2[frame i],opacity)
end;
//where "setopacity" is a function to change the opacity based on the assigned framenumber

i couldn't imagine a nice way to do this without for, that's why i asked. but i'm realy new in avisynth so i might miss a much more easy way perhaps.

so if anyone wants to laugh at me and show me how a real avisynth-coder would do that, please go ahead.
until then i'll try the for-command mirkosp linked me to. thanks again,

raiseer

User avatar
raiseer
Joined: Fri May 08, 2009 9:01 am
Location: Germany
Contact:
Org Profile

Re: Please, any newbie might be able to help, i'm dying here

Post by raiseer » Sun May 10, 2009 4:35 am

ok, i found conditionalreader - so i'm good here :)
thread can be closed for that matter

Locked

Return to “AviSynth Help”