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: Jan 2016
Posts: 79
|
Question about Scope of Variables
Can a run-time filter change the value defined for a variable in the top-level script?
The following code does not change the value of x from 5 to 6. Code:
BlankClip(length=240, width=640, height=480, pixel_type="RGB32", fps=24, fps_denominator=1, audio_rate=44100, channels=1, sample_type="16bit", color=$000000) x = 5 FrameEvaluate("x = 6", show=false, after_frame=false) Subtitle(String(x)) The following code does not define a value for x. Code:
BlankClip(length=240, width=640, height=480, pixel_type="RGB32", fps=24, fps_denominator=1, audio_rate=44100, channels=1, sample_type="16bit", color=$000000) FrameEvaluate("global x = current_frame") Subtitle(String(x)) |
![]() |
![]() |
Tags |
run-time |
Thread Tools | Search this Thread |
Display Modes | |
|
|