if you have the world matrix and want the vector for say the z direction you just pull out the first 3 columns of row 2 (0 based of course)
zvec = OpenMaya.MVector(matrix(2,0), matrix(2,1), matrix(2,2)).normalize() startPoint = OpenMaya.MPoint(matrix(3, 0), matrix(3, 1), matrix(3, 2)) On Thu, Feb 10, 2011 at 8:53 AM, alireza fattahi <[email protected]>wrote: > Thanx but how could i get a vector from it? And objects are not straight so > i don't think that axis are enough. > > -- > http://groups.google.com/group/python_inside_maya > -- http://groups.google.com/group/python_inside_maya
