Skip to main content

Python scripting for TVPaint

Project description

PyTVPaint 🐍 → 🦋

Downloads

PyTVPaint is a type-safe Python library that wraps the George programming language commands in order to interact with the 2D animation software TVPaint.

It communicates through WebSocket to a custom C++ plugin running in an opened TVPaint instance.

You can check the documentation for more details.

Installation

Requirements

  • Windows (for now, see this)
  • Python v3.9+
  • TVPaint v11.5+
  • TVPaint RPC plugin (install instructions here)

Install the package with Pip:

❯ pip install pytvpaint

Simple example

from pytvpaint import george
from pytvpaint.project import Project

# Get access to tvp elements
project = Project.load("scene.tvpp", silent=True)

clip = project.current_clip
# Or get the clip by name
clip = project.get_clip(by_name="my_clip")

layer = clip.add_layer("my_new_layer")

# Check out other layers
for layer in clip.layers:
    print(layer.name)

# Get access to George functions
george.tv_rect(50, 50, 100, 100)

# Render your file
clip.render("./out.#.png", start=20, end=45)

project.close()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Disclaimer

PyTVPaint is a project created at BRUNCH Studio to facilitate our developer experience with George. The API is targeted at experienced developers and is by no means a replacement for TVPaint or George but simply builds on it.

We are not affiliated with the TVPaint development team and therefore can't fix any bugs in the software or the George API.

Please direct your issues appropriately; any issues with PyTVPaint should be submitted as an issue in this repository or the C++ plugin's repository, any issues with TVPaint the software should be addressed to the tvp support team.

For any questions on the limitations of our API, please head to this page.

License

MIT


Made with ❤️ at

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

pytvpaint-1.0.0b1.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

pytvpaint-1.0.0b1-py3-none-any.whl (61.3 kB view details)

Uploaded Python 3

File details

Details for the file pytvpaint-1.0.0b1.tar.gz.

File metadata

  • Download URL: pytvpaint-1.0.0b1.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.9.18 Linux/6.5.0-1016-azure

File hashes

Hashes for pytvpaint-1.0.0b1.tar.gz
Algorithm Hash digest
SHA256 1cf476c9ee0ac1ad6eedda02ed4aad4b1d54aaec0256b56119bfe559fc609af5
MD5 b03b7ba27e9a0c14f9b9f04c56cf1e90
BLAKE2b-256 7da18064a0246a62c700121f85eb99d0f40d6b9dfddd0c47bafa581dc3d0bc31

See more details on using hashes here.

File details

Details for the file pytvpaint-1.0.0b1-py3-none-any.whl.

File metadata

  • Download URL: pytvpaint-1.0.0b1-py3-none-any.whl
  • Upload date:
  • Size: 61.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.9.18 Linux/6.5.0-1016-azure

File hashes

Hashes for pytvpaint-1.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a35dd5e6a31464c5ca0c0caf1b774003a7591fcfe41dc5d439cfad100675b8f
MD5 ff5d57ece1040dbd45a1b3d566507b52
BLAKE2b-256 fa29920b4e9091fefb114ef9d4cd3e8c67761ead9da6997747319cd4dacb73ab

See more details on using hashes here.

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