Initial Commit

This commit is contained in:
OmniLottie
2026-03-01 21:36:54 +08:00
commit a386c803e1
199 changed files with 42253 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
from .base import exporter
from ..parsers.sif.builder import to_sif
from ..utils.file import open_file
@exporter("Synfig", ["sif"], [], {"pretty"})
def export_sif(animation, file, pretty=True):
with open_file(file) as fp:
dom = to_sif(animation).to_xml()
dom.writexml(fp, "", " " if pretty else "", "\n" if pretty else "")