Blender Git Loki

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

4 Modified Paths:

/source/blender/python/api2_2x/doc/Mathutils.py (+8, -1) (Diff)
/source/blender/python/api2_2x/doc/Object.py (+20, -2) (Diff)
/source/blender/python/api2_2x/matrix.c (+178, -152) (Diff)
/source/blender/python/api2_2x/matrix.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021