Commit 73863806 authored by Jan Möbius's avatar Jan Möbius

More scripting documentation

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b8a76138
\page scripting OpenFlipper Scripting
\page scripting OpenFlipper Scripting and Batch Mode
TODO: OpenFlipper Scripting and examples.
\section scripting_batch_mode OpenFlipper Batch mode
OpenFlipper can be started in batch mode without a graphical user interface by providing "-b"
as a command line option. Furthermore you have to provide an OpenFlipper script (extension is .ofs),
which will get executed. To get output to the command line, you also have to provide the command
line switch "-c". Only plugins which support batch mode ( They implement an nogui() function ), will
be loaded. For example, no renderers, postprocessors or other plugins providing only user interface
or graphical functionality will be loaded. You can see on the command line (when "-c" is given),
which plugins are activated and which are skipped in batch mode.
\section scripting_iterating Iterating over objects
In the scripting system you can also iterate over objects in the scene.
......@@ -52,7 +59,14 @@ TODO: OpenFlipper Scripting and examples.
The Matrix4x4T type used in the C++ code is mapped to the scripting language. Details
can be found here:
\subpage scripting_matrix_type
\section scripting_misc Miscellaneuos
\subsection scripting_misc_path How to get the path of the current script?
// The path of the currently executed script is stored in the ScriptPath variable.
\section scripting_examples Scripting Examples
\subsection scripting_examples_qstringlist Iterating over a QStringList
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment