## SVGAni - A simple, manual SVG animation tool ## Version 1.0 - 2009-05-21 ## ## For details about the necessary modifications to the SVG input file, ## and the format of the svgani.settings file, please visit: ## http://www.mbeckler.org/inkscape/svgani/ ## ## Written by Matthew L Beckler - matthew at mbeckler dot org ## ## lines starting with '#' will be ignored. ## Sections are denoted by [section_name]. [general] ## This is the input SVG filename: input_svg_filename: ball_modified.svg ## This is the base of the output filename, and will be appended with ## a four-digit image number, followed by .png ## Example: 'frame_' will become 'frame_0000.png', 'frame_0001.png', etc. output_png_basename: frame_ ## The size of the output images, in pixels. output_width: 100 output_height: 100 ## Do you want the output images converted to gif? ## (requires the ImageMagick utility 'convert') convert_to_gif = True ## How many phases of animation. If your animation becomes more complex than ## can be handled by creative use of the index variable, then you can have ## multiple phases. Each phase needed must have a corresponding section below ## with names like [phase_0000], [phase_0001], etc. num_phases: 2 ## If enabled, svgani will draw a nice progress bar. If your terminal doesn't ## support fancy ANSI terminal codes (most do), then you might want to disable ## the progress bar. draw_progress: true ## If you need to use more fancy kinds of functions in your eval strings, ## such as the math module, you can specify any required modules as a ## space-separated list here. Leave it empty (but not commented-out) if ## you don't need to import any extra modules. modules: math [phase_0000] ## There is a variable called 'index'. These values control how index ## is changed from one image to the next. Steps should be an integer, ## but the other two can be either integers or decimals. index_start: 0 index_end: 255 steps: 52 ## Inside each phase's definition, the lines are of the following format: ## search_string: replacement_string ## All instances of search_string will be replaced with the result of calling ## python's eval() function on replacement_string ball_fill_color: "%02X%02X%02X" % (index,0,0) [phase_0001] ## Phase index controls: index_start: 255 index_end: 0 steps: 52 ## Replacements to make: ball_fill_color: "%02X%02X%02X" % (index,0,0)