Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
154 lines (129 loc) · 13.5 KB

plugins.core.tangent.manager.md

File metadata and controls

154 lines (129 loc) · 13.5 KB

docs » plugins.core.tangent.manager


Tangent Control Surface Manager

This plugin allows CommandPost to communicate with Tangent's range of panels (Element, Virtual Element Apps, Wave, Ripple and any future panels).

Download the Tangent Developer Support Pack & Tangent Hub Installer for Mac here: http://www.tangentwave.co.uk/developer-support

Submodules

API Overview

API Documentation

Constants

Signature plugins.core.tangent.manager.APPLICATION_NAME_SUFFIX -> string
Type Constant
Description A suffix applied to the end of Application Names as they appear in Tangent Mapper
Signature plugins.core.tangent.manager.MAXIMUM_CONNECTIONS -> number
Type Constant
Description Maximum number of socket connections to Tangent Hub.
Signature plugins.core.tangent.manager.NUMBER_OF_FAVOURITES -> number
Type Constant
Description Maximum number of favourites.
Signature plugins.core.tangent.manager.USER_CONTROL_MAPS_FOLDER -> string
Type Constant
Description The full name for storing User Control Maps

Variables

Signature plugins.core.tangent.manager.customApplications <cp.prop: table>
Type Variable
Description Table of Custom Applications
Signature plugins.core.tangent.manager.enabled <cp.prop: boolean>
Type Variable
Description Enable or disables the Tangent Manager.
Signature plugins.core.tangent.manager.tangentHubInstalled <cp.prop: boolean>
Type Variable
Description Is Tangent Hub Installed?
Signature plugins.core.tangent.manager.tangentMapperInstalled <cp.prop: boolean>
Type Variable
Description Is Tangent Mapper Installed?

Functions

Signature plugins.core.tangent.manager.applicationNames() -> table
Type Function
Description Gets a table listing all the connections application names.
Parameters
  • None
Returns
  • A table containing the names of all the registered connections.
Signature plugins.core.tangent.manager.getConnection(applicationName) -> connection
Type Function
Description Gets a Tangent connection object.
Parameters
  • applicationName - Your application name as a string
Returns
  • The connection object
Signature plugins.core.tangent.manager.launchTangentMapper() -> none
Type Function
Description Launches the Tangent Mapper.
Parameters
  • None
Returns
  • None
Signature plugins.core.tangent.manager.newConnection(applicationName, systemPath, userPath, task, pluginPath, addDefaultModes, setupFn, transportFn) -> connection
Type Function
Description Creates a new Tangent Connection
Parameters
  • applicationName - The application name as a string. This is what appears in CommandPost Preferences.
  • systemPath - A string containing the absolute path of the directory that contains the Controls and Default Map XML files.
  • userPath - An optional string containing the absolute path of the directory that contains the User’s Default Map XML files.
  • task - An optional string containing the name of the task associated with the application. This is used to assist with automatic switching of panels when your application gains mouse focus on the GUI. This parameter should only be required if the string passed in appStr does not match the Task name that the OS identifies as your application. Typically, this is only usually required for Plugins which run within a parent Host application. Under these circumstances it is the name of the Host Application’s Task which should be passed.
  • pluginPath - A string containing the absolute path of the directory that contains the built-in Default Map XML files.
  • addDefaultModes - A boolean which indicates whether or not CommandPost should add any default modes.
  • setupFn - Setup function.
  • transportFn - Transport function.
Returns
  • The connection object
Signature plugins.core.tangent.manager.registerCustomApplication(applicationName, bundleExecutable) -> none
Type Function
Description Registers a new Custom Application
Parameters
  • applicationName - The display name of the custom application
  • bundleExecutable - The bundle executable identifier of the custom application
Returns
  • A table where the application name is the key, and display name is the value.
Signature plugins.core.tangent.manager.removeCustomApplication(applicationName) -> none
Type Function
Description Removes a Custom Application.
Parameters
  • applicationName - The display name of the Custom Application to Remove.
Returns
  • None
Signature plugins.core.tangent.manager.setupCustomApplications() -> none
Type Function
Description Setup the Custom Applications.
Parameters
  • None
Returns
  • None