[gnome-getting-started-docs] deal with soundmix better



commit 1fa2f27c322846fe7e0408be820da2baaafcdad4
Author: Jakub Steiner <jimmac gmail com>
Date:   Mon May 13 17:17:25 2013 +0200

    deal with soundmix better

 animation/gnomerender.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/animation/gnomerender.py b/animation/gnomerender.py
index 3cd8db1..b241654 100644
--- a/animation/gnomerender.py
+++ b/animation/gnomerender.py
@@ -16,8 +16,8 @@ def render(lang):
   sndpath = "%s/snd" % (renderpathabs)
   sndfile = "%s/snd.flac" % (sndpath)
   bpy.ops.render.render(animation=True)
-  if (not os.path.isdir(sndpath)):
-    os.mkdir(sndpath)
+  if (not os.path.isfile(sndfile)):
+    #os.mkdir(sndpath)
     bpy.ops.sound.mixdown(filepath=sndfile)
   else:
     print('sound mixed already')
@@ -30,6 +30,8 @@ def transcode(lang,x=854,bitrate="300k"):
   framepath = renderpathabs
   webmfile = "%s.webm" % (regexobj.group(2))
   transcodepath = "../gnome-help/%s/figures/" % (lang)
+  if (not os.path.isdir(transcodepath)):
+    os.mkdir(transcodepath)
   y = round(x/(1280/720))
   
   #print(transcodepath,webmfile,sndfile,framepath)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]