View Single Post
Old 23rd April 2013, 21:25   #2264  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
Talking about editing the AviSynth script...

I often need to import an external script file into my main script. The external script is NOT a function, it cannot be called by a function name. Instead it just has to be imported into the main script and executed as if it was a part of the main script (no parameters have to be passed).

To make this work in AVStoDVD I first tried it like this:

Video = Video.ConvertToYV12()
Video = Video.Import("MyAVSScript.avs")

This does not work, I get an error message. The next try does work:

Video = Video.ConvertToYV12()
Last = Video
Import("MyAVSScript.avs")
Video = Last



Is this the way to do it, or can it be done in a more elegant way?


Cheers
manolito
manolito is offline   Reply With Quote