This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/intern/python/modules/mcf/utils/hierdummy.py
Hans Lambermont 12315f4d0e Initial revision
2002-10-12 11:37:38 +00:00

17 lines
478 B
Python

'''
Hierarchic 'Dummy' objects
'''
import hierobj, dummy
class HierobjDummy(hierobj.Hierobj,dummy.Dummy):
'''
An Hierarchic Dummy object, which provides direct access to its
children through object[x] interfaces, allows "index" "count"
etceteras by returning the corresponding attributes of the _base.
'''
def __init__(self, parent=None, childlist=None):
hierobj.Hierobj.__init__(self, parent, childlist)
self._base = self.__childlist__ #set by init function above