- Campbell Barton contributed another function (thanks again), the Image.reload method:
  with this a script can keep an image that is being edited and saved by an external program updated in Blender.
This commit is contained in:
2004-05-25 10:36:58 +00:00
parent f9fa705cd3
commit 8a64e0e867
3 changed files with 281 additions and 253 deletions

View File

@@ -104,6 +104,15 @@ class Image:
This is for texture tiling.
@rtype: int
"""
def reload():
"""
Reloads this image from the filesystem. If used within a loop you need to
redraw the Window to see the change in the image, e.g. with
Window.RedrawAll().
@warn: if the image file is corrupt or still being written, it will be
replaced by a blank image in Blender, but no error will be returned.
@returns: None
"""
def setName(name):
"""