Internal functions/Script functions: Difference between revisions

From Avisynth wiki
Jump to navigationJump to search
No edit summary
Raffriff42 (talk | contribs)
make redirect
 
Line 1: Line 1:
== Script functions ==
#REDIRECT [[Internal_functions#Script_functions]]


They provide AviSynth script information.
* {{ScriptFunction|ScriptName|v2.60|ScriptName()}}
: Returns the path and filename of the loaded script as a string.
: ''Examples:''
name = ScriptName() # name = "F:\ProjectXYZ\video.avs"
* {{ScriptFunction|ScriptFile|v2.60|ScriptFile()}}
: Returns the filename of the loaded script as a string.
: ''Examples:''
file = ScriptFile() # file = "video.avs"
* {{ScriptFunction|ScriptDir|v2.60|ScriptDir()}}
: Returns the path of the loaded script as a string.
: ''Examples:''
folder = ScriptDir() # folder = "F:\ProjectXYZ"
----
Back to [[Internal functions]].


[[Category:AviSynth_Syntax]]
[[Category:AviSynth_Syntax]]
[[Category:Scripting_Basics]]
[[Category:Scripting_Basics]]

Latest revision as of 03:56, 17 September 2014