#hs.blackmagic
Support for the Blackmagic DaVinci Resolve Speed Editor Keyboard and Editor Keyboard.
Example Usage:
This extension was thrown together by Chris Hocking for CommandPost.
This extension would not be possible without Sylvain Munaut's genius work figuring out the authentication protocol.
This extension is based off Chris Jones' hs.streamdeck extension.
Special thanks to David Peterson, Morten Bentsen, Håvard Njåstad and Sondre Tungesvik Njåstad.
This extension uses code based off Sylvain Munaut's Python Scripts under the following license:
Copyright 2021 Sylvain Munaut tnt@246tNt.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
#API Overview
Constants - Useful values which cannot be changed
Functions - API calls offered directly by the extension
Methods - API calls which can only be made on an object returned by a constructor
#API Documentation
#Constants
#Functions
| | | | --------------------------------------------|-------------------------------------------------------------------------------------| | Signature | hs.blackmagic.discoveryCallback(fn) -> none
| | Type | Function | | Description | Sets/clears a callback for reacting to device discovery events. | | Parameters |
- fn - A function that will be called when a Blackmagic device is connected or disconnected. It should take the following arguments: A boolean, true if a device was connected, false if a device was disconnected. An
hs.blackmagic
object, being the device that was connected/disconnected.
- None
| | | | --------------------------------------------|-------------------------------------------------------------------------------------| | Signature | hs.blackmagic.init(fn) -> none
| | Type | Function | | Description | Initialises the Blackmagic driver and sets a discovery callback. | | Parameters |
- fn - A function that will be called when a Blackmagic device is connected or disconnected. It should take the following arguments: A boolean,
true
if a device was connected,false
if a device was disconnected. Anhs.blackmagic
object, being the device that was connected/disconnected.
- None
- This function must be called before any other parts of this module are used.