QX QY QZ QW to RotX RotY RotZ

Hello,
I have a problem with a script.:o
I have a csv file with values qx, qy, qz and qw.
Now I must convert this to RotX RotY and RotZ.
How can I convert this.

Regards wuerzie

PS
sorry for my excellent english.:o

Hello again.
http://www.blender.org/documentation/245PythonDoc/Mathutils.Quaternion-class.html
On this Side I found Information about qx qy qz and qw.

import Blender

from Blender.Mathutils import *

quat = Quaternion(0.05971722, 0.04045353, 0.00991832, 0.9973459)

print quat

The Result is

[0.05971722, 0.04045353, 0.00991832, 0.9973459]<quaternion>

I need RotX …

Is there any python secialist???
I need a Tip.

Regards wuerzie

hehe, this has nothing to do with Python and everything with math… as far as I can see, quat.toEuler() is the one you need.

Thank you for the Tip.
Is this true???

``````                  quat = Quaternion(qx, qy, qz, qw)
rot = quat.toEuler()

rx=rot[0]
ry=rot[1]
rz=rot[2]

if rx &lt; 0:
rx=rx+360

if ry &lt; 0:
ry=ry+360

if rz &lt; 0:
rz=rz+360