def create(self, cls=None):
    mobj = super(Compound, self).create(cls)
    default = super(Compound, self).default(cls)
    for (index, child) in enumerate(self['children']):
        for attr in ('storable', 'readable', 'writable', 'hidden', 'channelBox', 'keyable', 'array'):
            child[attr] = self[attr]
        if ((child['default'] is None) and (default is not None)):
            child['default'] = default[index]
        self.Fn.addChild(child.create(cls))
    return mobj
def create(self, cls=None):
    mobj = super(Compound, self).create(cls)
    default = super(Compound, self).default(cls)
    for (index, child) in enumerate(self['children']):
        for attr in ('storable', 'readable', 'writable', 'hidden', 'channelBox', 'keyable', 'array'):
            child[attr] = self[attr]
        if ((child['default'] is None) and (default is not None)):
            child['default'] = default[index]
        self.Fn.addChild(child.create(cls))
    return mobj