Skip to main content

A tool for working with XFL/XflSvg data.

Project description

This library is part of the Pony Preservation Project. It is designed to support the development of 2D animation AI. It has three main functions:

  • Support to creation for SVG spritemaps for XFL files. Since there’s no publicly-known way to render Adobe’s Edge format, this library assumes that Adobe Animate is required to render shape objects. The XflSvgRecorder class simplifies the process by exporting (1) a simplified XFL file containing a single symbol, whose frames contain all of the shapes in the parent XFL files, and (2) a JSON object mapping parent XFL shapes to their location in the simplified XFL file.

  • Convert XFL files and exported SVG shapes (xflsvg files) into a tabular data format. The tabular data will eventually contain ALL data necessary to fully recreate the original animation, and the data will be hierarchically structured to match the original XFL file. This is done using the XflSvgRecorder class’s to_json() and to_xfl() methods.

  • Render tabular animation data. The tabular data may be exported from existing xflsvg files, or they may be programmatically generated. This is done using the XflSvgRenderer class.

This project is currently in an early stage. The xflsvg format will change over time as we identify exactly what XFL data is necessary to recreate animations, as will the rendering code.

If you’re using pip to install xflsvg, you’ll need to install cairocffi and cairosvg to use XflSvgRenderer. If you’re using conda to install xflsvg, both will be automatically installed. Note that pip doesn’t seem to install cairocffi properly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xflsvg-0.1.4.tar.gz (15.3 kB view hashes)

Uploaded Source

Built Distribution

xflsvg-0.1.4-py3-none-any.whl (15.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page