Campbell Barton
d73e312f88
Added Image.GetCurrent()
...
Previously the only way to get the current image was flaky and relyd on the image being assigned to a mesh.
try:
me = Scene.GetCurrent().getAttiveObject().getData(mesh=1)
image = me.faces[me.activeFace].image
except:
image = None
...Can new be replaced by the following, and works even when there is no mesh.
image = Image.GetCurrent()
epydocs:
Get the currently displayed Image from Blenders UV/Image window.
When multiple images are displayed, the last active UV/Image windows image is used.
2005-12-13 00:00:11 +00:00
..
2005-12-12 20:12:50 +00:00
2005-12-02 21:25:30 +00:00
2005-12-12 20:12:50 +00:00
2005-06-15 06:22:26 +00:00
2005-11-15 21:14:24 +00:00
2005-10-03 19:12:11 +00:00
2005-06-15 06:22:26 +00:00
2005-12-02 21:25:30 +00:00
2003-06-21 11:44:10 +00:00
2005-10-11 15:11:39 +00:00
2005-11-20 15:12:06 +00:00
2004-08-04 20:52:55 +00:00
2005-06-12 16:20:29 +00:00
2005-06-15 06:22:26 +00:00
2005-12-13 00:00:11 +00:00
2005-12-06 06:16:10 +00:00
2003-06-21 11:44:10 +00:00
2005-11-28 05:03:26 +00:00
2005-09-21 19:48:40 +00:00
2005-09-09 01:31:10 +00:00
2004-06-24 09:43:13 +00:00
2005-09-21 19:48:40 +00:00
2005-12-11 04:20:37 +00:00
2005-11-20 01:07:54 +00:00
2005-06-15 06:22:26 +00:00
2003-06-21 11:44:10 +00:00
2004-05-25 03:26:29 +00:00
2005-11-15 21:14:24 +00:00
2004-04-25 14:43:21 +00:00
2005-11-18 19:44:44 +00:00
2004-07-27 03:13:45 +00:00
2005-04-21 19:44:52 +00:00
2005-11-15 21:14:24 +00:00
2005-10-11 15:11:39 +00:00
2005-09-14 11:04:13 +00:00
2005-04-16 05:25:42 +00:00
2003-06-25 04:38:38 +00:00
2003-06-24 07:21:17 +00:00
2003-06-21 16:07:55 +00:00
2003-06-21 16:07:55 +00:00
2003-06-21 16:07:55 +00:00
2003-06-21 16:07:55 +00:00
2003-06-26 02:03:51 +00:00
2003-06-21 16:09:21 +00:00
2005-06-15 06:22:26 +00:00
2005-06-15 06:22:26 +00:00
2005-11-26 02:10:42 +00:00
2005-11-20 18:41:41 +00:00
2005-08-10 13:36:40 +00:00
2005-10-19 21:24:18 +00:00
2005-11-28 22:49:59 +00:00
2005-06-15 06:22:26 +00:00
2003-10-12 16:03:52 +00:00