View Full Version : How to Use transfer avs function?
gameyixiu
7th April 2008, 10:50
I write a function like this :
function movie_Crop_trim (clip c)
{
c.Crop(90,12,-90,-12)
c.trim(500,0)
}
my avs file write like this ,I konw it is wrong:
AviSource("D:\test.avi")
movie_Crop_trim (c)
function movie_Crop_trim (clip c)
{
c.Crop(90,12,-90,-12)
c.trim(500,0)
}
How can I Use transfer avs function in my avs file ?
gameyixiu
7th April 2008, 10:59
I know transfer this function is wrong (Usage is wrong),but I don't konw how to use,Can anyone help me.
Give me the function transfer useage,thanks!
Gavino
7th April 2008, 12:12
How can I Use transfer avs function in my avs file ?
Assuming what you want to do is declare a function movie_Crop_trim and apply it to the source "D:\test.avi", you simply need to write:
function movie_Crop_trim (clip c)
{
c.Crop(90,12,-90,-12)
c.trim(500,0)
}
AviSource("D:\test.avi")
movie_Crop_trim ()
gameyixiu
7th April 2008, 13:52
I am a Chinese People,My English is poor,so you didn't understand what does I said!
I know "movie_Crop_trim (c)",this useage is wrong(My Mplayer said it is wrong!),can you tell me the right useage!
I need something about the avs User-Defined Functions study information。
Guest
7th April 2008, 13:57
If you want to pass the clip then try:
movie_Crop_trim(last) # instead of c
or:
c=AviSource("D:\test.avi")
movie_Crop_trim(c)
gameyixiu
7th April 2008, 14:07
If you want to pass the clip then try:
movie_Crop_trim(last) # instead of c
or:
c=AviSource("D:\test.avi")
movie_Crop_trim(c)
Ha,You are understanding me!
Thank you for your help!
I have a suggestion,Can the Avs Help Document translate to Chinese?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.