Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
a20a8a8c
Commit
a20a8a8c
authored
Mar 17, 2016
by
Jan Möbius
Browse files
Added include statement for scripts
parent
5a72fed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Documentation/DeveloperHelpSources/scripting.docu
View file @
a20a8a8c
...
...
@@ -111,6 +111,16 @@
// The path of the currently executed script is stored in the ScriptPath variable.
print(ScriptPath)
\endcode
\subsection scripting_misc_includes Can i include additional script files?
Yes, just use the keyword include. You can also use paths relative to the current script.
The scripts will be joined internally so variables are available across the scripts.
\code
// Include with full path:
include <Path/script1.ofs>
// Relative to current script:
include <ScriptPath/script2.ofs>
\endcode
\section scripting_examples Scripting Examples
\subsection scripting_examples_qstringlist Iterating over a QStringList
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment