Hi devthep, you mean like an OpenGL rotation matrix?
You can get the transformation matrix of an object by running the following:
Code:
xform -q -m `ls -sl`;
This will give you a standard 4x4 matrix. If the object is at the origin, and has not been modified, it returns the 0-1 identity matrix. You can then decompose it to find the rotation matrix.
You can also do the following in python: www.akeric.com/blog/?p=1067
Imagination is more important than knowledge.
Last edited by NextDesign; 01-03-2012 at 04:17 PM.