A collection of Python scripts to use with Terragen, including a handy configurable dashboard script from which to launch them.
The toolkit requires a version of Terragen 4 with the remote procedure call (RPC) feature.
It also requires the Python programing language and the modules listed below. Some scripts require external libraries such as OpenEXR and Imath.
Terragen 4 Professional (v4.6.31 or later)
or Terragen 4 Creative (4.7.15 or later)
or Terragen 4 Free (4.7.15 or later)
https://planetside.co.uk/
Python
https://www.python.org/
Tom’s Obvious, Minimal Language module
https://pypi.org/project/toml/
Pillow
https://pypi.org/project/Pillow/
OpenEXR module
https://pypi.org/project/OpenEXR/
terragen-rpc
https://github.com/planetside-software/terragen-rpc
The general recommendation for downloading and installing this toolkit is as follows:
-
From the GitHub redmaw-tg-toolkit repository click the green "Code" button and select "Download ZIP"
Save the ZIP archive to your computer.
Extract the folder structure and files from the ZIP archive.
You can install the dependency modules at a command prompt or terminal as follows:
-
Windows:
- py -m pip install toml
py -m pip install Pillow
py -m pip install terragen-rpc
py -m pip install OpenEXR
MacOS:
- python3 -m pip install toml
python3 -m pip install Pillow
python3 -m pip install terragen-rpc
python3 -m pip install OpenEXR
In this repository you’ll find two Python scripts, a config file, a scripts folder and an images folder.
The script folder contains all the individual scripts and supporting data to run them.
The tg_dashboard scripts are identical except for their file extensions. The file ending in .PY will open a command window when run, while the file ending in .PYW will not. I recommend using the file with the .PYW extension when the script is run or called from an external file or a creative controller device like a Tourbox.
Run the tg_dashboard script. The UI will present a button for each script in the config file. Click the button to execute the script.
Many scripts written for use with Terragen will make use of its Remote Procedure Call (RPC) feature. It’s best to have Terragen 4 running when you make use of the scripts.
The tg_dashboard script makes organizing and running your Python scripts for Terragen just one button click away. The script will automatically generate a User Interface with button widgets and tabs according to the contents of its TOML formatted config file.
The config file is a text file which can be easily edited. The config file stores the fullpath, name/label, and keyboard shortcut to the scripts you want to run. By default the config file mirrors the layout of Terragen’s toolbar, but can be easily customized by commenting out lines of code or removing them completely in the config file.


