Log in

View Full Version : Really Quick Stupid Question


SkilledAbbot
25th March 2024, 05:18
How can I load scripts into scripts. Meaning I edited one script and want to add that to another script.

Sorry for the old man newb question.

takla
25th March 2024, 06:20
If you want the functions from one script in another script file, just copy that function over?

Otherwise, here is an example (https://raw.githubusercontent.com/Dogway/Avisynth-Scripts/master/MIX%20mods/FrameRateConverterMIX.avsi) of a script file that calls and inherits other scripts

Frank62
25th March 2024, 14:59
Second Script Start

v=avisource("xxxx.AVS") <--- first script
return v

Second Script End

johnmeyer
25th March 2024, 17:19
QTGMC is nothing more than a sophisticated AVISynth script. So, just follow the QTGMC protocol:

1. Save your script with the extension .AVSI (e.g., QTGMC.avsi)

2. Import that script into your existing script, e.g.,Import("E:\AVISynth Scripts\QTGMC.avsi")

3. Call QTGMC just as you would if it were a function, e.g.,QTGMC("faster", sharpness=0, SubPel=2)

SkilledAbbot
26th March 2024, 07:13
Thank you everyone.

Yeah, I realized I could just copy it over and did, but at the time, but I had a special case and Frank62's reply is what I was looking for.