Home - Forums - Documentation - Gallery - Bugs


Python Bindings for Cel and CrystalSpace

CrystalSpace and Cel both have their own scripting bindings. The modules are pretty extensive and should give you access to most of the c++ api.

The CrystalSpace python module is called cspace, and the cel counterpart is blcelc. Also, a slightly higher level module is available in cel for entity behaviours, called pycel.

From now on, when referring to crystalspace, this python section will be referring to both crystalspace and cel.

Ways of using python with crystalspace

  • Pure Python cs-only app.
  • Pure Python cs+cel app.
  • Embedded inside a cs app through cspython.
  • Embedded inside a celstart app through the python behaviour layer.

The easiest way to start by far would be the fourth method, as it eases you of all initialization of cs, and lets centering on the logic.

Celstart Tutorial apps

Some simple celstart applications to get you started.


Note all of this examples are generated from .blend sources using blender2crystal.


Python section at the cel manual

Python section at the cs manual

Creating celstart-python games using blender2crystal

Cs python api

Cel python api

| Article | Discussion | View source | History |