[Bf-python] Object Properties from Python?

Joseph Gilbert models at paposo.com
Thu May 27 13:47:51 CEST 2004


	The Object class (blender) contains a linked list for
properties/actuators/sensors (all the logic brick stuff). Each brick is
defined as a C class and added internally to the end of the linked list in
Object once a new logic brick is created. These items are serializable with
the object.

	If a submodule to the object module is created, the properties class (in
DNA_property_types.h) would be a python object that would be be creatable.
Basically a python property should set/get name/data/type with some methods
to add/copy/remove from an object. Types available is this class are bool,
int, float, string (vector and time prob arent useful).  (Properties are in
a sense a dictionary because they are name:data pairs) The user could also
load the .blend, get all objects, then get all properties from each object
and create a dictionary from this with a script. This would allow you to
call properties easily from a large set.

	I think this sounds usefull. What about the sensors, etc. are these also
useful to wrap and add? Maybe this is too gameengine specific.





More information about the Bf-python mailing list