Skip to main content

Native Python PTSL (Pro Tools Scripting Library) RPC interface

Project description

Lint and Test codecov Documentation Status GitHub last commit

Pro Tools Version - 2023.9 PTSL Version - 3

py-ptsl

Native Python PTSL (Pro Tools Scripting Library) RPC interface

Important Notice!

This software is developed by enthusiasts and is not a work of or supported by Avid. Developers who wish to contribute to this project should obtain the PTSL SDK from Avid's Developer site for the most current documentation and protobuf source files.

Example

See the examples directory for scripts demonstrating how to use the client.

  • session_info.py - This example prints a list of gettable properties from the currently-open session.
  • print_tracks.py - This example prints a list of every track in the currently-open session, including state information like selection, mute and solo state, track color and track ID.
  • make_session.py - Creates a new session interactively from the terminal.
  • pt_set.py - Allows several session setup options to be set from the terminal.
  • pt_pasteboard.py - Demonstrates triggering cut/copy/paste actions.

Sending Commands To Pro Tools with the Engine class

The Engine class exposes ptsl commands with a method call interface.

from ptsl import open_engine

with open_engine(company_name="MY_COMPANY", application_name="MY_TOOL") as engine:
    session_name = engine.session_name()

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

py_ptsl-301.0.0.tar.gz (57.4 kB view hashes)

Uploaded Source

Built Distribution

py_ptsl-301.0.0-py3-none-any.whl (75.0 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