Running Scripts in Darkradiant: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
add troubleshooting |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 13: | Line 13: | ||
== How to run them == | == How to run them == | ||
Select them under the "Scripts" menu and choose the one you want to run. | 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 == | == Troubleshooting == | ||
Line 19: | Line 19: | ||
=== I don't have a script menu? === | === I don't have a script menu? === | ||
It seems you either have Python not installed, or the script module is not compiled in | It seems you either have Python not installed, or the script module is not compiled in. | ||
== Example scripts == | == Example scripts == | ||
* [ | * [https://raw.githubusercontent.com/codereader/DarkRadiant/master/install/scripts/commands/ase_export.py ASE Exporter] | ||
* [https://raw.githubusercontent.com/codereader/DarkRadiant/master/install/scripts/test.py Interface Test Script] | |||
== See also == | == See also == | ||
* [[DarkRadiant_Script_Reference|Darkradiant Python Script Reference]] | * [[DarkRadiant_Script_Reference|Darkradiant Python Script Reference]] | ||
* [[Python scripts for Dark Radiant]] | |||
{{editing}} | {{editing}} |
Latest revision as of 17:30, 19 August 2017
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
It seems you either have Python not installed, or the script module is not compiled in.