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 open 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 development 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

TVPaint 12

TVPaint-12 compatibility has been added in the latest release. It requires a new version of the tvpaint-rpc plugin. The api has been tested with the new version of TVPaint and mostly works, however there are a lot of breaking changes and some bugs, check the release notes for more info. We currently do not advise using pytvpaint with TVPaint-12 in production.


Made with ❤️ at BRUNCH Studio

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.1.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

pytvpaint-1.1.1-py3-none-any.whl (86.8 kB view details)

Uploaded Python 3

File details

Details for the file pytvpaint-1.1.1.tar.gz.

File metadata

  • Download URL: pytvpaint-1.1.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1

File hashes

Hashes for pytvpaint-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e38f849a669fc9fb9c3f6dacd8183d1c2007afde88659f814d5bb64407050c09
MD5 35ab534f992837fed14532a992af810f
BLAKE2b-256 e1da24e9f3bdd2f89aa47fa80b870f8831c42229b56fcca9c366182c993740dd

See more details on using hashes here.

File details

Details for the file pytvpaint-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: pytvpaint-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 86.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1

File hashes

Hashes for pytvpaint-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8418b2afff9351f506d8456125beb4ee3e87279c93800f3954314e69fe7cad2
MD5 8e8e5f91a681639f1ff3294fb3eca46b
BLAKE2b-256 ed3f62e818c78d373308262f2617065219244f5ebaedd7e7d6c84956c4a67165

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