View Full Version : Import Function Args from a text file?
Southstorm
10th April 2008, 14:43
Is there such a tool that will import function args into an AVS script from a text file?
I see the Run and Call functions, but this is just for executing a external program.
I just want to read lines from a text file and insert them into an AVS script on the fly.
gzarkadas
10th April 2008, 15:18
Since you want to read lines, ie the most general case, you will need AVSLib (http://sourceforge.net/projects/avslib) for this (it will make handling & quering line contents easier); see the 5th (http://avslib.sourceforge.net/examples/example-005.html) and 8th (http://avslib.sourceforge.net/examples/example-005.html) of the online example-scripts to get an idea.
You can also take a look at these threads / posts; thay may prove useful, depending on what you want to do after reading the lines.
how to create a file containing an avisynth multiline string from the command prompt (http://forum.doom9.org/showthread.php?p=1018881#post1018881)
another example, showing how to batch-script an avs that reads parameters from file (http://forum.doom9.org/showthread.php?t=126018)
yet another batch-scripting-an-avs-that-reads-parameters-from-file example (http://forum.doom9.org/showthread.php?t=131637) (without AVSLib)
how to read runtime-changing input (http://forum.doom9.org/showthread.php?t=129191) (without AVSLib)
There are more threads on this topic, but I think this is enough for start :).
Southstorm
10th April 2008, 15:34
@gzarkadas
This looks to be exactly what I was looking for, Thankyou so much!!!
Now to read up and see if I can accomplish my diabolical plan...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.