L3DT users' wiki
Large 3D terrain generator

 

Differences

This shows you the differences between two versions of the page.

plugins:general:cdpython [2017/08/31 07:04] (current)
Line 1: Line 1:
 +====== 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.
 
plugins/general/cdpython.txt · Last modified: 2017/08/31 07:04 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki