Page MenuHome

image_user.frame_duration = 100 when creating single image node in Cycles
Closed, ArchivedPublicBUG


This is a followup to T78537.

Consider the attached script. It creates an image and a texture node. Image.source = SINGLE IMAGE but behind the scenes Image.image_user.frame_duration = 100, which apparently causes memory problems according to the other bug report. You can see that by switching the source to MOVIE.

It is easy to avoid this problem by adding the line

node.image_user.frame_duration = 1

whenever a texture node is created. But then you need to know that you should do that.

Event Timeline

Ankit Meel (ankitm) changed the task status from Needs Triage to Confirmed.Jul 8 2020, 10:31 PM
Ankit Meel (ankitm) changed the subtype of this task from "Report" to "Bug".

I do not consider this to be a bug. The frame duration should only be used for frame sequences, it should not be expected to be 1 for still images. Changing an image datablock back and forth between different types should not lose duration data.