Blender Git Commit Log
Git Commits -> Revision 176a4c8
Revision 176a4c8 by Campbell Barton (master) April 27, 2006, 12:32 (GMT) |
Added scalePart to mathutils matrix type object. and made it so toEuler converts a 4x4 matrix to a 3x3 rather then raising an error. Its not straight fwd to get an objects worldspace loc/size/rot from its 4x4 matrix. Example from updated docs. import Blender scn = Blender.Scene.GetCurrent() ob = scn.getActiveObject() if ob: mat= ob.mat # Same as martixWorld print 'Location", mat.translationPart() # 3D Vector print 'Size", mat.scalePart() # 3D Vector print 'Rotation", mat.toEuler() # Euler object |
Commit Details:
Full Hash: 176a4c8507fa431270b5efa7b36d3dbdc9d3d197
SVN Revision: 7326
Parent Commit: b18763a
Lines Changed: +207, -155