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 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-13 00:00:11 +00:00
2005-12-12 18:46:26 +00:00
2005-12-12 18:46:26 +00:00
2005-12-12 18:46:26 +00:00
2005-12-12 18:46:26 +00:00
2005-07-18 03:50:37 +00:00
2005-07-18 03:50:37 +00:00
2005-07-23 13:46:40 +00:00
2005-08-17 14:26:00 +00:00
2005-07-18 03:50:37 +00:00
2005-12-13 00:00:11 +00:00
2005-07-18 03:50:37 +00:00
2005-07-18 03:50:37 +00:00
2005-10-26 16:30:50 +00:00
2005-09-09 01:31:10 +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-11-15 21:45:05 +00:00
2005-11-15 21:45:05 +00:00
2005-07-23 13:46:40 +00:00
2005-10-27 19:37:37 +00:00
2005-11-29 05:08:29 +00:00
2005-07-18 03:50:37 +00:00
2005-07-18 03:50:37 +00:00
2005-08-17 14:26:00 +00:00
2005-11-29 05:08:29 +00:00
2005-11-29 05:08:29 +00:00
2005-07-26 13:30:08 +00:00
2005-07-23 13:46:40 +00:00
2005-10-03 22:06:16 +00:00
2005-07-18 03:50:37 +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
2005-10-19 21:24:18 +00:00
2005-09-26 15:06:28 +00:00
2005-08-17 14:26:00 +00:00
2005-07-18 03:50:37 +00:00