Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Oct 2021
Posts: 21
|
Use custom variable with ConditionalReader()
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.
PHP Code:
|
![]() |
![]() |
![]() |
#2 | Link |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,430
|
ConditionalReader() is for setting the value of a variable on a per-frame basis, so that the variable can be used inside another run-time filter such as ScriptClip().
But here you are using the variable box_width only to set the width of the blank clip, which happens at compile-time, before any frames are read. You can get the effect you want by putting the required value (eg 130) as the only contents of the file and setting the variable by adding Code:
box_width = Import("box_width.txt") (And of course in addition removing the call to ConditionalReader()). |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|