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 8a83aff9f5 [#18678] Swizzle properties for Mathutils.Vector
patch from Alex Fraser (z0r)

eg.
  - vec.xyz = vec.zyx
  - vec.xy = vec.zw
  - vec.xxy = vec.wzz
  - vec.yzyz = vec.yxyx

See http://en.wikipedia.org/wiki/Swizzling_(computer_graphics)

made some minor modifications to this patch.

tested access times and adding 336 attributes to vectors doesn't make a noticeable differences to speed of existing axis attributes (x,y,z,w) - thanks to python dict lookups.
2009-05-03 17:52:03 +00:00
..
2009-04-21 09:38:27 +00:00
2008-09-20 10:30:10 +00:00
2008-04-28 00:40:38 +00:00
2009-04-21 09:44:29 +00:00
2007-08-29 03:09:22 +00:00
2009-04-21 09:44:29 +00:00
2009-04-21 09:44:29 +00:00
2009-04-21 09:44:29 +00:00
2008-10-11 12:17:16 +00:00
2008-09-19 12:33:17 +00:00
2009-04-21 09:44:29 +00:00
BPy
2009-04-19 00:09:47 +00:00
2008-07-26 10:45:11 +00:00
2009-04-28 15:28:02 +00:00
2009-04-07 18:55:35 +00:00
2008-09-12 02:23:52 +00:00
2008-09-08 23:39:32 +00:00
2009-04-21 09:44:29 +00:00
2008-09-20 10:30:10 +00:00
2009-04-21 09:44:29 +00:00
2009-02-17 14:41:36 +00:00
2008-08-30 14:32:16 +00:00
2008-09-20 04:37:10 +00:00
2009-04-21 09:44:29 +00:00
2009-04-21 09:44:29 +00:00
2008-09-20 10:30:10 +00:00