YEY, you can all ignore that and i am quite smug to say i solved it !!
using the API goodness. i' m getting the hang of this. slightly
annoying there s no python command to change rad_to_deg as my method
outputs radians but thats no biggy. This code will take face normal
data (or any other normal data for that matter) as an om.MVector and
return an om.MEulerRotation value, which  can be queried as x y z. Go
me !


torusNormal = om.MVector(0,1,0)
chips=om.MQuaternion()
chips=torusNormal.rotateTo(vector)
red=chips.asEulerRotation()
print red.x
print red.y
print red.z

by setting torusnormal to (0,1,0) it is essentially the directional
value it has when its created. after doing it i realise how simple
this actually was....
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to