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/doc
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-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
2003-06-21 11:44:10 +00:00
2005-06-15 06:22:26 +00:00
2005-12-13 00:00:11 +00:00
2003-06-21 11:44:10 +00:00
2005-09-09 01:31:10 +00:00
2004-06-24 09:43:13 +00:00
2003-06-21 11:44:10 +00:00
2005-11-15 21:14:24 +00:00
2004-04-25 14:43:21 +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
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-21 16:09:21 +00:00
2005-06-15 06:22:26 +00:00
2005-11-26 02:10:42 +00:00
2005-10-19 21:24:18 +00:00
2005-06-15 06:22:26 +00:00
2003-10-12 16:03:52 +00:00