Exemple #1
0
    def __init__(self):
        RenderChanModule.__init__(self)
        self.conf['binary'] = self.findBinary("inkscape")
        self.conf["packetSize"] = 0

        self.extraParams['use_own_dimensions'] = '1'
        self.extraParams['proxy_scale'] = '1.0'
Exemple #2
0
    def __init__(self):
        RenderChanModule.__init__(self)
        if os.name == 'nt':
            self.conf['convert_binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\packages\\imagemagick\\bin\\convert.exe")
            self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\packages\\krita\\bin\\krita.exe")
        else:
            #TODO: Additional bunaries should be separate modules
            self.conf['convert_binary']="convert"
            self.conf['binary']="krita"

        self.conf["packetSize"]=0

        self.extraParams['use_own_dimensions']='1'
        self.extraParams['proxy_scale']='1.0'
        self.extraParams["single"] = "None"

        self.canRenderAnimation = False
        commandline = [self.conf['binary'], "--help"]
        out = subprocess.Popen(commandline, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
        rc = None
        while rc is None:
            line = out.stdout.readline()
            line = line.decode(sys.stdout.encoding)
            if not line:
                break
            #print(line)
            sys.stdout.flush()

            if line.find("--export-sequence")!=-1:
                self.canRenderAnimation = True

            rc = out.poll()

        out.communicate()
Exemple #3
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\pencil\\pencil2d.exe")
     else:
         self.conf['binary']="pencil2d"
     self.conf["packetSize"]=0
Exemple #4
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\ffmpeg\\bin\\ffmpeg.exe")
     else:
         self.conf['binary']="ffmpeg"
     self.conf["packetSize"]=0
Exemple #5
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary'] = os.path.join(
             os.path.dirname(__file__), "..\\..\\..\\pencil\\pencil2d.exe")
     else:
         self.conf['binary'] = "pencil2d"
     self.conf["packetSize"] = 0
Exemple #6
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\packages\\gimp\\gimp.exe")
     else:
         self.conf['binary']="gimp"
     self.conf["packetSize"]=0
     self.extraParams['use_own_dimensions'] = '1'
Exemple #7
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\packages\\oggdec\\oggdec.exe")
         self.conf['sox_binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\packages\\sox\\sox.exe")
     else:
         self.conf['binary']="oggdec"
         self.conf['sox_binary']="sox"
     self.conf["packetSize"]=0
Exemple #8
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\packages\\mpg123\\mpg123.exe")
         self.conf['sox_binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\packages\\sox\\sox.exe")
     else:
         self.conf['binary']="mpg123"
         self.conf['sox_binary']="sox"
     self.conf["packetSize"]=0
Exemple #9
0
    def __init__(self):
        RenderChanModule.__init__(self)
        self.conf['binary'] = self.findBinary("ffmpeg")
        self.conf["packetSize"] = 100
        self.conf["maxNbCores"] = 1

        # Extra params
        self.extraParams["single"] = "None"
        self.extraParams["extract_alpha"] = "0"
Exemple #10
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\flac\\win32\\flac.exe")
         self.conf['sox_binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\sox\\sox.exe")
     else:
         self.conf['binary']="flac"
         self.conf['sox_binary']="sox"
     self.conf["packetSize"]=0
Exemple #11
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary'] = os.path.join(
             os.path.dirname(__file__),
             "..\\..\\..\\packages\\gimp\\gimp.exe")
     else:
         self.conf['binary'] = "gimp"
     self.conf["packetSize"] = 0
     self.extraParams['use_own_dimensions'] = '1'
Exemple #12
0
 def __init__(self):
     RenderChanModule.__init__(self)
     self.conf["binary"] = self.findBinary("blender")
     self.conf["packetSize"] = 40
     self.conf["gpu_device"] = ""
     # Extra params
     self.extraParams["cycles_samples"] = "0"
     self.extraParams["prerender_count"] = "0"
     self.extraParams["single"] = "None"
     self.extraParams["disable_gpu"] = "False"
Exemple #13
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\packages\\inkscape\\inkscape.exe")
     else:
         self.conf['binary']="inkscape"
     self.conf["packetSize"]=0
     
     self.extraParams['use_own_dimensions']='1'
     self.extraParams['proxy_scale']='1.0'
Exemple #14
0
    def __init__(self):
        RenderChanModule.__init__(self)
        if os.name == 'nt':
            self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\ffmpeg\\bin\\ffmpeg.exe")
        else:
            self.conf['binary']="ffmpeg"
        self.conf["packetSize"]=100
        self.conf["maxNbCores"]=1

        # Extra params
        self.extraParams["single"]="None"
        self.extraParams["extract_alpha"]="0"
Exemple #15
0
    def __init__(self):
        RenderChanModule.__init__(self)
        self.conf['convert_binary'] = self.findBinary("convert")
        self.conf['binary'] = self.findBinary("krita")

        self.conf["packetSize"] = 0

        self.extraParams['use_own_dimensions'] = '1'
        self.extraParams['proxy_scale'] = '1.0'
        self.extraParams["single"] = "None"

        self.canRenderAnimation = False
Exemple #16
0
    def __init__(self):
        RenderChanModule.__init__(self)
        self.conf['binary'] = self.findBinary("pencil2d")
        self.conf["packetSize"] = 0
        # Extra params
        self.extraParams["transparency"] = "0"
        self.extraParams["width"] = "-1"
        self.extraParams["height"] = "-1"
        self.extraParams["startFrame"] = "1"
        self.extraParams["endFrame"] = "last"

        self.version = StrictVersion('0.5.4')  #default value
Exemple #17
0
    def __init__(self):
        RenderChanModule.__init__(self)
        if os.name == 'nt':
            self.conf['binary'] = os.path.join(
                os.path.dirname(__file__),
                "..\\..\\..\\inkscape\\inkscape.exe")
        else:
            self.conf['binary'] = "inkscape"
        self.conf["packetSize"] = 0

        self.extraParams['use_own_dimensions'] = '1'
        self.extraParams['proxy_scale'] = '1.0'
Exemple #18
0
    def __init__(self):
        RenderChanModule.__init__(self)
        if os.name == 'nt':
            self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\synfig\\bin\\synfig.exe")
        else:
            self.conf['binary']="synfig"
        self.conf["packetSize"]=100
        self.conf["maxNbCores"]=1

        # Extra params
        self.extraParams["single"]="None"
        self.extraParams["extract_alpha"]="0"
Exemple #19
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\blender\\blender.exe")
     else:
         self.conf['binary']="blender"
     self.conf["packetSize"]=40
     self.conf["gpu_device"]=""
     # Extra params
     self.extraParams["cycles_samples"]="0"
     self.extraParams["prerender_count"]="0"
     self.extraParams["single"]="None"
     self.extraParams["disable_gpu"]="False"
Exemple #20
0
 def __init__(self):
     RenderChanModule.__init__(self)
     if os.name == 'nt':
         self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\packages\\blender\\blender.exe")
     else:
         self.conf['binary']="blender"
     self.conf["packetSize"]=40
     self.conf["gpu_device"]=""
     # Extra params
     self.extraParams["cycles_samples"]="0"
     self.extraParams["prerender_count"]="0"
     self.extraParams["single"]="None"
     self.extraParams["disable_gpu"]="False"
Exemple #21
0
    def __init__(self):
        RenderChanModule.__init__(self)
        if os.name == 'nt':
            self.conf['convert_binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\imagemagick\\bin\\convert.exe")
            self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\krita\\bin\\krita.exe")
        else:
            #TODO: Additional bunaries should be separate modules
            self.conf['convert_binary']="convert"
            self.conf['binary']="krita"

        self.conf["packetSize"]=0

        self.extraParams['use_own_dimensions']='1'
        self.extraParams['proxy_scale']='1.0'
Exemple #22
0
    def __init__(self):
        RenderChanModule.__init__(self)
        if os.name == 'nt':
            self.conf['binary']=os.path.join(os.path.dirname(__file__),"..\\..\\..\\packages\\pencil2d\\pencil2d.exe")
        else:
            self.conf['binary']="pencil2d"
        self.conf["packetSize"]=0
        # Extra params
        self.extraParams["transparency"]="0"
        self.extraParams["width"]="-1"
        self.extraParams["height"]="-1"
        self.extraParams["startFrame"]="1"
        self.extraParams["endFrame"]="last"

        self.version=StrictVersion('0.5.4') #default value
Exemple #23
0
    def __init__(self):
        RenderChanModule.__init__(self)
        if os.name == 'nt':
            self.conf['binary'] = os.path.join(
                os.path.dirname(__file__),
                "..\\..\\..\\packages\\pencil2d\\pencil2d.exe")
        else:
            self.conf['binary'] = "pencil2d"
        self.conf["packetSize"] = 0
        # Extra params
        self.extraParams["transparency"] = "0"
        self.extraParams["width"] = "-1"
        self.extraParams["height"] = "-1"
        self.extraParams["startFrame"] = "1"
        self.extraParams["endFrame"] = "last"

        self.version = StrictVersion('0.5.4')  #default value
Exemple #24
0
    def __init__(self):
        RenderChanModule.__init__(self)
        if os.name == 'nt':
            self.conf['convert_binary'] = os.path.join(
                os.path.dirname(__file__),
                "..\\..\\..\\imagemagick\\bin\\convert.exe")
            self.conf['binary'] = os.path.join(
                os.path.dirname(__file__), "..\\..\\..\\krita\\bin\\krita.exe")
        else:
            #TODO: Additional bunaries should be separate modules
            self.conf['convert_binary'] = "convert"
            self.conf['binary'] = "krita"

        self.conf["packetSize"] = 0

        self.extraParams['use_own_dimensions'] = '1'
        self.extraParams['proxy_scale'] = '1.0'
Exemple #25
0
 def __init__(self):
     RenderChanModule.__init__(self)
     self.conf['binary'] = self.findBinary("mpg123")
     self.conf['sox_binary'] = self.findBinary("sox")
     self.conf["packetSize"] = 0
Exemple #26
0
 def __init__(self):
     RenderChanModule.__init__(self)
     self.conf['binary'] = self.findBinary("ffmpeg")
     self.conf["packetSize"] = 0
Exemple #27
0
 def __init__(self):
     RenderChanModule.__init__(self)
     self.conf["packetSize"]=0
Exemple #28
0
 def __init__(self):
     RenderChanModule.__init__(self)
     self.conf["packetSize"] = 0
Exemple #29
0
 def __init__(self):
     RenderChanModule.__init__(self)
     self.conf['binary'] = self.findBinary("gimp")
     self.conf["packetSize"] = 0
     self.extraParams['use_own_dimensions'] = '1'