git @ Cat's Eye Technologies kinoje / d8bda85
Change config key that command is specified in. Chris Pressey 5 years ago
4 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
00 duration: 1.44
1 command_template: povray +L{libdir} -D +I{infile} +O{outfile} +W{width} +H{height} +A
1 command: povray +L{libdir} -D +I{infile} +O{outfile} +W{width} +H{height} +A
22 template: |-
33 global_settings { assumed_gamma 2.2 }
44
00 duration: 2.0
11 width: 400
22 height: 400
3 command_template: inkscape -z -e {outfile} -w {width} -h {height} {infile}
3 command: inkscape -z -e {outfile} -w {width} -h {height} {infile}
44 template: |-
55 <?xml version="1.0" standalone="no"?>
66 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
0 render_command_template: povray -D +I{infile} +O{outfile}z.png +W{width} +H{height} +A && convert {outfile}z.png -swirl 80 {outfile}
0 command: povray -D +I{infile} +O{outfile}z.png +W{width} +H{height} +A && convert {outfile}z.png -swirl 80 {outfile}
11 template: |-
22 global_settings { assumed_gamma 2.2 }
33
1515 """Takes a source directory filled with text files and a destination directory and
1616 creates one image file in the destination directory from each text file in the source."""
1717 def __init__(self, config, src, dest, exe):
18 self.command_template = config['command_template']
18 self.command = config['command']
1919 self.libdir = config['libdir']
2020 self.src = src
2121 self.dest = dest
3333 self.render(frame, full_srcname, full_destname)
3434
3535 def render(self, frame, full_srcname, full_destname):
36 cmd = self.command_template.format(
36 cmd = self.command.format(
3737 infile=full_srcname,
3838 libdir=self.libdir,
3939 outfile=full_destname,