@staticmethod
    def load(collada, localscope, node):
        colornode = node.find('%s/%s/%s' % (tag('technique_common'),
            tag('ambient'), tag('color')))
        if colornode is None:
            raise DaeIncompleteError('Missing color for ambient light')
        try:
            color = tuple( [ float(v) for v in colornode.text.split() ] )
        except __HOLE__ as ex:
            raise DaeMalformedError('Corrupted color values in light definition')
        return AmbientLight(node.get('id'), color, xmlnode = node)
dataset/ETHPy150Open pycollada/pycollada/collada/light.py/AmbientLight.load