Developer Documentation
|
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 python script (extension is .ofp), 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.
The Matrix4x4T type used in the C++ code is mapped from python. Details can be found here: Matrix4x4 data type used for python scripting
The Vector type used in the C++ code is mapped from python. Details can be found here: Vector data type used for python scripting
The IdList type used in the C++ code is mapped from python. Details can be found here: IDList data type used for python scripting
Here is a simple example of a python script using the holefiller:
Another example produces an animation of a rotating object: