Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My addon renders frames whose names are not constant. How can I use Python to get the playback to work?

I'm working on a time remapping addon and wanted to give the user the option to include the true frame number in the filename, e.g.:




But bpy.ops.render.play_rendered_anim() doesn't work on these, although importing these images into the Video Editor works fine.

share|improve this question
up vote 2 down vote accepted

The operator doesn't expose any options you could set, but this seems to be the command it uses:

'C:\\Program Files\\Blender Foundation\\Blender\\blender.exe -a -f 24 1.0 -s 1 -e 250 -j 1 C:\\tmp\\0001.png'

There's even a step / frame jump parameter:

But it doesn't really help in your case. You need to specify every single frame:

blender -a -f 24 1.0 00_0001.png 25_0002.png 50_0003.png 75_0004.png
share|improve this answer
That command helps. I suppose one option would be to modify the line in the file where the command blender -a ... is defined and then bundle the modified file with my addon. I'll have to decide if this functionality is worth having an extra file. – Garrett Feb 18 '14 at 3:52
You could change that script and submit to the patch tracker as proposal, to make it more generic. It could be changed to optionally accept a callback function to find the right files. – CoDEmanX Feb 18 '14 at 17:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.