| 10 | |
| 11 | === Scripting |
| 12 | All commands in Maperitive that can be performed by clicking in the GUI can also be performed by writing and running a script. Most of the commands can be found on the [http://maperitive.net/docs/ Maperitive docs website], or by running Maperitive and clicking Help/Documentation, then the Commands Tab. You can run a script with the run-script command. |
| 13 | |
| 14 | Maperitive scripts can be run from the command line without opening a GUI, which is helpful for memory-draining operations that would be made significantly slower by having to draw them on the screen. You can do this by entering the script name as a parameter to {{{Maperitive.Console.exe}}}. |
| 15 | |
| 16 | Maperitive also has it's own Python library, "Maperipy", which exposes a lot of useful, more complicated functionality. Documentation can be found by running Maperitive and clicking Help/Documentation, then the Maperipy Tab. You can run python scripts using the Console version or with the run-python command. Maperitive provides many examples of Python scripts in the Maperitive\Python folder. |