Broken: 2.83.6 (and all previous 2.8x versions)
Short description of error
Cannot access image sequence pixel data from 'Image Sequence' editor after certain properties are set.
Exact steps for others to reproduce the error
Based on the following startup file and bundled image sequence:
- Open the 'image_sequence_issue.blend' file from the following zip folder:
- Run the active script in the text editor area
- Notice that an error is thrown - the image sequence has no data.
- Now comment out lines 8 & 9 (or line 12), and re-run the script. Notice that no error is thrown and the image has data.
For reference; the script bundled in the above file is copied below:
import bpy # get the image editor space in the current screen viewer_area = next(area for area in bpy.context.screen.areas if area.type == "IMAGE_EDITOR") viewer_space = next(space for space in viewer_area.spaces if space.type == "IMAGE_EDITOR") # set properties on the image user viewer_space.image_user.frame_offset = 1 viewer_space.image_user.use_cyclic = True # set the display channels to 'color' viewer_space.display_channels = "COLOR" # viewer_space.image.reload() # this line does not fix the issue print("Before update:", viewer_space.image.has_data) viewer_space.image.update() print("After update: ", viewer_space.image.has_data)