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
def checkRequirements(self): RenderChanModule.checkRequirements(self) if self.active: # The CLI features depend on the version with tempfile.TemporaryDirectory() as tmpPath: # The exporting of a fake file is a workaround for older versions which just start the program when passed only -v proc = subprocess.Popen([ self.conf['binary'], "-v", "--export-sequence", os.path.join(tmpPath, "test") ], stdout=subprocess.PIPE) try: outs, errs = proc.communicate(timeout=5) except TimeoutExpired: proc.kill() outs, errs = proc.communicate() rc = proc.poll() if rc == 0: try: # Get the version from stdout. An example of the output: "Pencil2D 0.6.0\n" self.version = outs.rstrip().decode("utf-8").split(" ")[-1] self.version = ".".join(self.version.split(".")[0:3]) self.version = StrictVersion(self.version) except: self.active = False else: self.active = False if self.active == False: print( "WARNING: Failed to initialize Pencil2D module. The possible reasons for that could be: missing X connection, or the version of Pencil2D on your system is unsupported (too old?). In latter case please consider to get latest version at https://www.pencil2d.org/." ) return self.active
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()
def checkRequirements(self): RenderChanModule.checkRequirements(self) if self.active: # The CLI features depend on the version with tempfile.TemporaryDirectory() as tmpPath: # The exporting of a fake file is a workaround for older versions which just start the program when passed only -v proc = subprocess.Popen([self.conf['binary'], "-v", "--export-sequence", os.path.join(tmpPath,"test")], stdout=subprocess.PIPE) try: outs, errs = proc.communicate(timeout=5) except TimeoutExpired: proc.kill() outs, errs = proc.communicate() rc = proc.poll() if rc == 0: try: # Get the version from stdout. An example of the output: "Pencil2D 0.6.0\n" self.version = outs.rstrip().decode("utf-8").split(" ")[-1] self.version = ".".join(self.version.split(".")[0:3]) self.version = StrictVersion(self.version) except: self.active = False else: self.active = False if self.active == False: print("WARNING: Failed to initialize Pencil2D module. The possible reasons for that could be: missing X connection, or the version of Pencil2D on your system is unsupported (too old?). In latter case please consider to get latest version at https://www.pencil2d.org/.") return self.active
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'
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
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'
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
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
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
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"
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
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'
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"
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'
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"
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
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
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'
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"
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"
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"
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'
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
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
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'
def __init__(self): RenderChanModule.__init__(self) self.conf['binary'] = self.findBinary("mpg123") self.conf['sox_binary'] = self.findBinary("sox") self.conf["packetSize"] = 0
def __init__(self): RenderChanModule.__init__(self) self.conf['binary'] = self.findBinary("ffmpeg") self.conf["packetSize"] = 0
def __init__(self): RenderChanModule.__init__(self) self.conf["packetSize"]=0
def __init__(self): RenderChanModule.__init__(self) self.conf["packetSize"] = 0
def __init__(self): RenderChanModule.__init__(self) self.conf['binary'] = self.findBinary("gimp") self.conf["packetSize"] = 0 self.extraParams['use_own_dimensions'] = '1'