]> Dogcows Code - chaz/rasterize/commitdiff
make animate script work for modern luas master
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Wed, 1 Dec 2021 19:00:57 +0000 (12:00 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Wed, 1 Dec 2021 19:03:10 +0000 (12:03 -0700)
animate.lua

index 616c717f4eb51ff396a343b5a2759ef90faf35d8..ae3ff24e464dd4dd6cf3c9b12f0106dbd91a07b3 100755 (executable)
@@ -109,7 +109,7 @@ X
         i = coroutine.yield()
         out:close()
         if 1 < supersample and
         i = coroutine.yield()
         out:close()
         if 1 < supersample and
-                run("convert %s -scale %dx%d %s", filename, size.w, size.h, filename) ~= 0 then
+                not run("convert %s -scale %dx%d %s", filename, size.w, size.h, filename) then
             print()
             os.exit(1)
         end
             print()
             os.exit(1)
         end
@@ -140,7 +140,7 @@ for render,frame in renderings() do render(frame) end
 
 print()
 
 
 print()
 
-if run("ffmpeg -i frames/anim%%04d.bmp %s -y -an scene.avi", ffmpeg_opts) == 0 then
+if run("ffmpeg -i frames/anim%%04d.bmp %s -y -an scene.avi", ffmpeg_opts) then
     print("Animation written to scene.avi.")
 else
     print("The animation could not be created. Is ffmpeg installed?")
     print("Animation written to scene.avi.")
 else
     print("The animation could not be created. Is ffmpeg installed?")
This page took 0.021354 seconds and 4 git commands to generate.