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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file xflsvg-0.1.4.tar.gz.

File metadata

  • Download URL: xflsvg-0.1.4.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for xflsvg-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7b594cc9125b7a9b20b07e5e35f8c9ee8516eb8d6dd828d553219f23b9fb48b8
MD5 295f4ca26938034527327429487db153
BLAKE2b-256 77c51c6e3a4c7e4bdd1ba3006db72439023e95f10aec246d7dfa4b44bf6d1565

See more details on using hashes here.

File details

Details for the file xflsvg-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: xflsvg-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for xflsvg-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d60e4bfefd04f2089c1401b26af69743839ccf5f758b4912b3072ac19122ef29
MD5 9db28079804c840d0e215fbed1f0299c
BLAKE2b-256 d612c2974b969c0e2d83c9b254f1764651a87ff702ab0b96b0bba2b1cf05ab79

See more details on using hashes here.

Supported by

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