In a For loop you have the x++ that adds 1 to x every loop.
Text file "Template A" , line 5, uses line one from text file "B", then saves the file as 1.txt.
Then Text file "Template A" , line 5, uses line two from text file "B", then saves the file as 2.txt.
It does this for all 500 lines in text file "B", so after it's done there is 500 text files.
Here is my template:
loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DirectShowSource.dll")
directshowsource("C:\Users\Jeremy\Desktop\D H.avi", audio=false, 23.976)
trim(0, 93)
converttoyv12()
Here is the trim list I want to use in the template:
trim(94,153)
trim(154,197)
trim(198,249)
trim(250,287)
trim(288,331)
trim(332,398)
trim(399,420)
trim(421,467)
trim(468,485)
trim(486,512)
trim(513,526)
trim(527,540)
trim(541,592)
trim(593,633)
trim(634,653)
trim(654,688)
trim(689,714)
trim(715,787)
trim(788,848)
trim(849,880)
trim(881,925)
trim(926,942)
trim(943,966)
trim(967,975)
trim(976,995)
trim(996,1012)
trim(1013,1027)
trim(1028,1036)
trim(1037,1055)
trim(1056,1075)
trim(1076,1150)
So the final template has this new trim value:
[code]
loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DirectShowSource.dll")
directshowsource("C:\Users\Jeremy\Desktop\D H.avi", audio=false, 23.976)
trim(94,153)
converttoyv12()
[/code]