Rob105
10th June 2023, 13:03
How to make this work so box_width is read from box_width.txt right now its fixed on value 70 regardless what ConditionalReader outputs 130.
v1 = colorbars(1920,1080).converttoyuy2()
box_width = 70
#Make box overlay
box = BlankClip(width=box_width, height=130, color=$000000).AddBorders(5,5,5,5,color=color_white)
#place overlay in video
Overlay(v1, box, x=740, y=600)
ConditionalReader("C:\Users\User\Downloads\AVISynth\box_width.txt", "box_width", true)
v1 = colorbars(1920,1080).converttoyuy2()
box_width = 70
#Make box overlay
box = BlankClip(width=box_width, height=130, color=$000000).AddBorders(5,5,5,5,color=color_white)
#place overlay in video
Overlay(v1, box, x=740, y=600)
ConditionalReader("C:\Users\User\Downloads\AVISynth\box_width.txt", "box_width", true)