hello_hello
13th July 2022, 13:07
http://avisynth.nl/index.php/ScriptClip#ScriptClip
I was reading the ScriptClip description on the wiki today and there's a line which doesn't make sense to me.
If you scroll down to the "Avisynth+ specialities" description and past the examples for the local argument, it says:
So all runtime filters* accept a bool "local" parameter which acts same as in GRunT.
ConditionalSelect, ConditionalFilter, ScriptClip, ConditionalReader, FrameEvaluate, WriteFile, WriteFileIf, WriteFileStart, WriteFileEnd
If local=true (function-syntax default) the filter will evaluate its run-time script in a new variable scope (opens a new global variable frame), avoiding unintended sharing of variables between run-time scripts.
It's the last line that confuses my feeble brain. Isn't local=false the default?
Also...
None of the other runtime functions include "local" in their argument lists, or mention it in their descriptions, so unless you were to read the ScriptClip description, there's no way to know that ConditionalFilter has a "local" argument.
ConditionalFilter(clip testclip, clip source1, clip source2, string expression1 [, bool show] )
I was reading the ScriptClip description on the wiki today and there's a line which doesn't make sense to me.
If you scroll down to the "Avisynth+ specialities" description and past the examples for the local argument, it says:
So all runtime filters* accept a bool "local" parameter which acts same as in GRunT.
ConditionalSelect, ConditionalFilter, ScriptClip, ConditionalReader, FrameEvaluate, WriteFile, WriteFileIf, WriteFileStart, WriteFileEnd
If local=true (function-syntax default) the filter will evaluate its run-time script in a new variable scope (opens a new global variable frame), avoiding unintended sharing of variables between run-time scripts.
It's the last line that confuses my feeble brain. Isn't local=false the default?
Also...
None of the other runtime functions include "local" in their argument lists, or mention it in their descriptions, so unless you were to read the ScriptClip description, there's no way to know that ConditionalFilter has a "local" argument.
ConditionalFilter(clip testclip, clip source1, clip source2, string expression1 [, bool show] )