Skip to main content

Library toto parse and edit spine animations from command line

Project description

============== spine-json-lib

This library was created to parse, edit and optimize spine animations from command line.

Installing

Install and update using pip_:

 pip install -U spine-json-lib
  • Free software: MIT license

Features

from spine_animation_editor import SpineAnimationEditor

animation_editor = SpineAnimationEditor.from_json_file(
    json_path='path/to/animation.json'
)

# images_references will keep references updated to images used in animation
# even after removing an animations or skins
print("{}".format(animation_editor.images_references))

# here we decided to remove "anim1" and "anim2"
animation_editor.erase_animations(
    animations_to_erase=["anim1", "anim2"]
)

# here we remove skin1 and all the images only used on this skin
animation_editor.erase_skins(
    skins_to_erase=["skin1"]
)

# making animation looks twice bigger that it is right now
animation_editor.scale_animation(scaleX=2.0, scaleY=2.0)

Credits

This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.

Cookiecutter: https://github.com/audreyr/cookiecutter audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage

Contributing

For guidance on how to make a contribution to spine-json-lib, see the contributing guidelines.

contributing guidelines: https://github.com/socialpoint-labs/spine-json-lib/blob/master/CONTRIBUTING.rst

Links

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

spine_json_lib-0.0.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

spine_json_lib-0.0.1-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file spine_json_lib-0.0.1.tar.gz.

File metadata

  • Download URL: spine_json_lib-0.0.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for spine_json_lib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 19a85112265c5231da644706bd79e8fc86d21c9f098016bb6a4bad261f0fb9ed
MD5 b62028b89c1f5d8b6e185cb0ecdeed97
BLAKE2b-256 e6f781be047223ccad798470caf3c7156199b914e3aff14aeb6bb52e1640f29c

See more details on using hashes here.

File details

Details for the file spine_json_lib-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: spine_json_lib-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for spine_json_lib-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aaa4ab64efbac7e89aa88162bee20cdb6709c9ef2e4e5605c19acfc2128aa22e
MD5 c806bc3bed6614ebb069bd5c44eb8103
BLAKE2b-256 7a954e2d2b32584a837d8ff15081a7bc251ce6b09927fbd9d1b04959b9b8ef0a

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