Exemplo n.º 1
0
 def run(self):
     args = ["enblend", "-o", self.output_file]
     if self.compression:
         args.append('--compression=%s' % str(self.compression))
     if self.gpu:
         args.append('--gpu')
     for arg in self.additional_args:
         args.append(arg)
     for f in self.input_files:
         args.append(f)
     
     for opt in config.enblend_opts().split():
         args.append(opt)
     
     self.lock()
             
     print 'Blender: executing %s' % (args,)
     rc = execute.prefix(args, stdout=self.stdout, stderr=self.stderr, prefix=self.pprefix)
     if not rc == 0:
         self.p('')
         self.p('')
         self.p('')
         self.p('Failed to blend')
         self.p('rc: %d' % rc)
         self.p(args)
         raise BlenderFailed('failed to remap')
Exemplo n.º 2
0
    def run(self):
        args = ["enblend", "-o", self.output_file]
        if self.compression:
            args.append('--compression=%s' % str(self.compression))
        if self.gpu:
            args.append('--gpu')
        for arg in self.additional_args:
            args.append(arg)
        for f in self.input_files:
            args.append(f)

        for opt in config.enblend_opts().split():
            args.append(opt)

        self.lock()

        print 'Blender: executing %s' % (args, )
        rc = execute.prefix(args,
                            stdout=self.stdout,
                            stderr=self.stderr,
                            prefix=self.pprefix)
        if not rc == 0:
            self.p('')
            self.p('')
            self.p('')
            self.p('Failed to blend')
            self.p('rc: %d' % rc)
            self.p(args)
            raise BlenderFailed('failed to remap')
Exemplo n.º 3
0
	def run(self):
		args = list()
		args.append("-o")
		args.append(self.output_file)
		if self.compression:
			args.append('--compression=%s' % str(self.compression))
		if self.gpu:
			args.append('--gpu')
		for arg in self.additional_args:
			args.append(arg)
		for f in self.input_files:
			args.append(f)
		
		for opt in config.enblend_opts().split():
			args.append(opt)
		
		rc = Execute.show_output("enblend", args)
		if not rc == 0:
			print
			print
			print
			print 'Failed to blend'
			print 'rc: %d' % rc
			print args
			raise BlenderFailed('failed to remap')