direct.leveleditor.ObjectPaletteBase

from direct.leveleditor.ObjectPaletteBase import ObjectBase, ObjectCurve, ObjectGen, ObjectPaletteBase

Inheritance diagram

Inheritance diagram of direct.leveleditor.ObjectPaletteBase

class ObjectBase(name='', createFunction=None, model=None, models=[], anims=[], animNames=[], animDict={}, properties={}, movable=True, actor=False, named=False, updateModelFunction=None, orderedProperties=[], propertiesMask={})[source]

Bases: direct.leveleditor.ObjectPaletteBase.ObjectGen

Base class for obj definitions

__init__(self, name='', createFunction=None, model=None, models=[], anims=[], animNames=[], animDict={}, properties={}, movable=True, actor=False, named=False, updateModelFunction=None, orderedProperties=[], propertiesMask={})[source]
class ObjectCurve(*args, **kw)[source]

Bases: direct.leveleditor.ObjectPaletteBase.ObjectBase

__init__(self, *args, **kw)[source]
class ObjectGen(name='')[source]

Bases: object

Base class for obj definitions

__init__(self, name='')[source]
class ObjectPaletteBase[source]

Bases: object

Base class for objectPalette

You should write your own ObjectPalette class inheriting this. Refer ObjectPalette.py for example.

__init__(self)[source]
add(self, item, parentName=None)[source]
addHidden(self, item)[source]
delete(self, name)[source]
deleteStruct(self, name, deleteItems)[source]
findChildren(self, name)[source]
findItem(self, name)[source]
insertItem(self, item, parentName)[source]

You can insert item to obj palette tree.

‘item’ is the object to be inserted, it can be either a group or obj. ‘parentName’ is the name of parent under where this item will be inserted.

populate(self)[source]
populateSystemObjs(self)[source]
rename(self, oldName, newName)[source]