This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/python/api2_2x
Campbell Barton 176a4c8507 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
2006-04-27 12:32:44 +00:00
..
2006-01-16 16:34:08 +00:00
2006-03-10 21:39:14 +00:00
2006-04-23 17:01:04 +00:00
2005-07-18 03:50:37 +00:00
2005-08-17 14:26:00 +00:00
2005-07-18 03:50:37 +00:00
2006-04-21 20:27:52 +00:00
2006-04-21 20:27:52 +00:00
2006-04-21 20:27:52 +00:00
2005-09-09 01:31:10 +00:00
2006-01-03 16:27:34 +00:00
2005-07-18 03:50:37 +00:00
2005-07-18 03:50:37 +00:00
2005-11-15 21:45:05 +00:00
2005-10-27 19:37:37 +00:00
2006-04-25 13:01:19 +00:00
2006-04-23 17:01:04 +00:00
2005-11-29 05:08:29 +00:00
2005-07-18 03:50:37 +00:00
2006-01-16 16:34:08 +00:00
2006-04-05 00:53:07 +00:00
2005-08-17 14:26:00 +00:00
2005-11-29 05:08:29 +00:00
2006-01-16 16:34:08 +00:00
2005-10-03 22:06:16 +00:00
2005-07-18 03:50:37 +00:00
2005-12-13 14:29:56 +00:00
2005-08-05 17:00:26 +00:00
2005-07-18 03:50:37 +00:00
2005-07-18 03:50:37 +00:00
2005-07-18 03:50:37 +00:00
2005-07-18 03:50:37 +00:00
2005-07-18 03:50:37 +00:00
2006-01-23 22:05:47 +00:00
2006-04-23 02:34:50 +00:00
2006-01-12 01:11:42 +00:00
2006-01-16 03:51:32 +00:00
2005-07-18 03:50:37 +00:00