when pressing `play` report when the first frame can't be found.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 10 Sep 2012 02:04:02 +0000 (02:04 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 10 Sep 2012 02:04:02 +0000 (02:04 +0000)
release/scripts/startup/bl_operators/screen_play_rendered_anim.py

index b4733ac9d87716d31d8d36990a14a2ef64267f32..f00b92beeedb841f636252d12bbc0c9cf36c8f84 100644 (file)
@@ -104,11 +104,14 @@ class PlayRenderedAnim(Operator):
 
             file = ("".join((c if file_b[i] == c else "#")
                     for i, c in enumerate(file_a)))
+            del file_a, file_b, frame_tmp
+            file = bpy.path.abspath(file)  # expand '//'
         else:
             # works for movies and images
             file = rd.frame_path(frame=scene.frame_start)
-
-        file = bpy.path.abspath(file)  # expand '//'
+            file = bpy.path.abspath(file)  # expand '//'
+            if not os.path.exists(file):
+                self.report({'WARNING'}, "File %r not found" % file)
 
         cmd = [player_path]
         # extra options, fps controls etc.