Python plugin
Posted: Mon Mar 05, 2007 7:54 am
Hi,
I have developed a plugin that will run Python scripts. The plugin has a builtin interface to the zeolite API so using the generated zeolite.py module you can write extensions in Python.
I have put this project here for now:
http://code.google.com/p/l3dtpython/
Hope this is useful to someone.
You can find the L3DT wiki page here:
http://www.bundysoft.com/wiki/doku.php?id=plugins:general:cdpython
In theory, now you can develop extensions in Python, which is free, so you don't need to know C++ and have Visual Studio...
Notes for DIY people
If you want to get the latest source code from SVN and build it for yourself with Visual Studio, I can recommend using tortoise SVN for windows, that is what I use: http://tortoisesvn.tigris.org/
You will also need SWIG to create the Python interface to the zeolite C++ code: http://www.swig.org
Why Python?
I want to use L3DT to create maps for TA Spring. I thought it would be cool to be able to automate the map creation process, run mapconv etc all using scripts that I and others could easily modify.
Python is a popular dynamic object-oriented programming language that can be learned really quickly.
Tips
If you have Python correctly installed, when you click "Run Python script" from the cdPython menu you get a open file dialog, if you right click on a python script you can choose Edit with IDLE, which will open that script in a IDE window that has syntax highlighting etc
I have developed a plugin that will run Python scripts. The plugin has a builtin interface to the zeolite API so using the generated zeolite.py module you can write extensions in Python.
I have put this project here for now:
http://code.google.com/p/l3dtpython/
Hope this is useful to someone.
You can find the L3DT wiki page here:
http://www.bundysoft.com/wiki/doku.php?id=plugins:general:cdpython
In theory, now you can develop extensions in Python, which is free, so you don't need to know C++ and have Visual Studio...
Notes for DIY people
If you want to get the latest source code from SVN and build it for yourself with Visual Studio, I can recommend using tortoise SVN for windows, that is what I use: http://tortoisesvn.tigris.org/
You will also need SWIG to create the Python interface to the zeolite C++ code: http://www.swig.org
Why Python?
I want to use L3DT to create maps for TA Spring. I thought it would be cool to be able to automate the map creation process, run mapconv etc all using scripts that I and others could easily modify.
Python is a popular dynamic object-oriented programming language that can be learned really quickly.
Tips
If you have Python correctly installed, when you click "Run Python script" from the cdPython menu you get a open file dialog, if you right click on a python script you can choose Edit with IDLE, which will open that script in a IDE window that has syntax highlighting etc