Internal functions/Script functions
From Avisynth wiki
(Difference between revisions)
Line 11: | Line 11: | ||
: Returns the filename of the loaded script as a string. | : Returns the filename of the loaded script as a string. | ||
: ''Examples:'' | : ''Examples:'' | ||
− | file = ScriptFile() # | + | file = ScriptFile() # file = "video.avs" |
* {{ScriptFunction|ScriptDir|v2.60|ScriptDir()}} | * {{ScriptFunction|ScriptDir|v2.60|ScriptDir()}} | ||
: Returns the path of the loaded script as a string. | : Returns the path of the loaded script as a string. | ||
: ''Examples:'' | : ''Examples:'' | ||
− | folder = ScriptDir() # | + | folder = ScriptDir() # folder = "F:\ProjectXYZ" |
---- | ---- |
Revision as of 17:24, 30 December 2013
Script functions
They provide AviSynth script information.
- ScriptName | v2.60 | ScriptName()
- Returns the path and filename of the loaded script as a string.
- Examples:
name = ScriptName() # name = "F:\ProjectXYZ\video.avs"
- ScriptFile | v2.60 | ScriptFile()
- Returns the filename of the loaded script as a string.
- Examples:
file = ScriptFile() # file = "video.avs"
- ScriptDir | v2.60 | ScriptDir()
- Returns the path of the loaded script as a string.
- Examples:
folder = ScriptDir() # folder = "F:\ProjectXYZ"
Back to Internal functions.