def setRotation(self, rot):
    'Interpret three values as an euler rotation'
    if isinstance(rot, Plug):
        rot = rot.as_vector()
    if isinstance(rot, (tuple, list)):
        try:
            rot = Vector(rot)
        except ValueError:
            traceback.print_exc()
            raise ValueError("I tried automatically converting your tuple to a Vector, but couldn't..")
    if isinstance(rot, Vector):
        rot = EulerRotation(rot)
    return super(TransformationMatrix, self).setRotation(rot)
Interpret three values as an euler rotation
def setRotation(self, rot):
    
    if isinstance(rot, Plug):
        rot = rot.as_vector()
    if isinstance(rot, (tuple, list)):
        try:
            rot = Vector(rot)
        except ValueError:
            traceback.print_exc()
            raise ValueError("I tried automatically converting your tuple to a Vector, but couldn't..")
    if isinstance(rot, Vector):
        rot = EulerRotation(rot)
    return super(TransformationMatrix, self).setRotation(rot)