Change config key that command is specified in.
Chris Pressey
5 years ago
0 | 0 |
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
|
2 | 2 |
template: |-
|
3 | 3 |
global_settings { assumed_gamma 2.2 }
|
4 | 4 |
|
0 | 0 |
duration: 2.0
|
1 | 1 |
width: 400
|
2 | 2 |
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}
|
4 | 4 |
template: |-
|
5 | 5 |
<?xml version="1.0" standalone="no"?>
|
6 | 6 |
<!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}
|
1 | 1 |
template: |-
|
2 | 2 |
global_settings { assumed_gamma 2.2 }
|
3 | 3 |
|
15 | 15 |
"""Takes a source directory filled with text files and a destination directory and
|
16 | 16 |
creates one image file in the destination directory from each text file in the source."""
|
17 | 17 |
def __init__(self, config, src, dest, exe):
|
18 | |
self.command_template = config['command_template']
|
|
18 |
self.command = config['command']
|
19 | 19 |
self.libdir = config['libdir']
|
20 | 20 |
self.src = src
|
21 | 21 |
self.dest = dest
|
|
33 | 33 |
self.render(frame, full_srcname, full_destname)
|
34 | 34 |
|
35 | 35 |
def render(self, frame, full_srcname, full_destname):
|
36 | |
cmd = self.command_template.format(
|
|
36 |
cmd = self.command.format(
|
37 | 37 |
infile=full_srcname,
|
38 | 38 |
libdir=self.libdir,
|
39 | 39 |
outfile=full_destname,
|