Running Scripts in Darkradiant

From The DarkMod Wiki
Revision as of 17:30, 19 August 2017 by Greebo (talk | contribs) (How to run them)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

DarkRadiant is offering a Python script interface which provides access to the most important functions. A complete reference of all available classes can be found here.

Where to place the scripts

Windows

Darkradiant\scripts\commands

Linux

/usr/lib/darkradiant/scripts/commands/

How to run them

Select them under the "Scripts" menu and choose the one you want to run. Or paste the Python code into the input window in the GroupDialog (Script tab near to the Console and the Media Browser) and hit Run.

Troubleshooting

I don't have a script menu?

It seems you either have Python not installed, or the script module is not compiled in.

Example scripts

See also