This shows you the differences between two versions of the page.
Link to this comparison view
— |
plugins:general:cdpython [2017/08/31 07:04] (current) |
| + | ====== cdPython ====== |
| | | |
| + | See [[http://code.google.com/p/l3dtpython/]] for more information. |
| + | |
| + | |
| + | |
| + | ===== Plugin information === |
| + | |
| + | ^ Author | [[user>carldt|Carl Douglas]] | |
| + | ^ Description | Write scripts in Python and access the zeolite API from Python | |
| + | ^ Menu option | '//Extensions->cdPython//' | |
| + | ^ Download link | http://l3dtpython.googlecode.com/files/cdPython-0.10.zip | |
| + | ^ Source code | http://code.google.com/p/l3dtpython/source | |
| + | ^ Dependencies | [[http://www.python.org/|Python]] | |
| + | |
| + | ===== What does it do? ===== |
| + | |
| + | Provides a zeolite python module, and runs python scripts. |
| + | |
| + | |
| + | ===== Using cdPython ===== |
| + | |
| + | Import the zeolite module in your Python code, e.g. |
| + | |
| + | <code> |
| + | import zeolite |
| + | </code> |
| + | |
| + | Create zeolite objects through the zeolite module, e.g. |
| + | |
| + | <code> |
| + | str = zeolite.CzStr() |
| + | str.Create(None) |
| + | str.EditUI('Enter a filename') |
| + | </code> |
| + | |
| + | To access the core ExtAPI object, you can reference it through the cvar attribute in the zeolite module: |
| + | |
| + | <code> |
| + | hf = zeolite.cvar.theAPI.project_GetMap('HF') |
| + | </code> |
| + | |
| + | -> //[[plugins:general:cdPython:examples|See more examples]]// >> |
| + | |
| + | ===== Changes ===== |
| + | |
| + | 2007/03/05 02:25 --- Released. |