File indexing completed on 2025-01-19 03:59:51

0001 
0002 from .base import exporter
0003 from ..parsers.sif.builder import to_sif
0004 from ..utils.file import open_file
0005 
0006 
0007 @exporter("Synfig", ["sif"], [], {"pretty"})
0008 def export_sif(animation, file, pretty=True):
0009     with open_file(file) as fp:
0010         dom = to_sif(animation).to_xml()
0011         dom.writexml(fp, "", "  " if pretty else "", "\n" if pretty else "")