last ++d1Originally Posted by carlmart
And at that time "last" is the blank clip.
Step through some scripts line by line.Originally Posted by carlmart
AvsP is good for that.
Comment out the whole thing and uncomment line by line.
See the link.Originally Posted by carlmart
You can do things like this:
Subtitle("The Break-In", y=100, align=5, size=40, font="lucida fax",first_frame=0, last_frame=256,text_color =$00e8e763, interlaced=true)
+ Reply to Thread
Results 31 to 33 of 33
-
-
Originally Posted by carlmart
Variables allow you to save the result of an operation in one part of a script so that you can use it in another (later) part. An example from your script is
Code:v=FFMpegSource2("d:\tmp\file.mkv") a=Nicac3Source("d:\tmp\file.ac3") audiodub(v,a)
A variable name can be anything you like, as long as it contains only letters, numbers and underscore characters, and does not start with a number. See http://avisynth.org/mediawiki/Script_variables.
As well as the variables that you explicitly set in your script (like v and a above), Avisynth implicitly uses a variable called last in a special way. If the result of a statement is a clip and it is not saved by you in a variable, Avisynth automatically saves it in last. In addition, if a function has a clip as its first argument (which most filters do), last is used as a default value for that clip.
So a sequence like
Code:AviSource("vid.avi") FadeIn(30)
Code:last = AviSource("vid.avi") last = FadeIn(last, 30)
Note how the value of last changes from one line to the next. At each point in the script, it represents the result of the last operation performed (hence its name). -
Poison, AlanHK and Gavino,
Thank you for your patience. Now I think I've climbed one more step.
Similar Threads
-
MP4Box & splitting -- won't do as told
By Virnec in forum LinuxReplies: 2Last Post: 23rd Feb 2012, 09:19 -
fading out last 50 frames - but no keyframe.
By davexnet in forum Video ConversionReplies: 3Last Post: 4th Feb 2009, 22:33 -
help with avs script (dv to mpeg2) Fading in/out
By ZiGGY909 in forum EditingReplies: 2Last Post: 14th Nov 2007, 14:12