This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local currentTool | |
middleMouseButtonTap = hs.eventtap.new({hs.eventtap.event.types.otherMouseDown, hs.eventtap.event.types.otherMouseUp}, function(ev) | |
if cp.apple.finalcutpro.isFrontmost() then | |
local buttonState = ev:getButtonState(2) | |
if buttonState then | |
-------------------------------------------------------------------------------- | |
-- Middle Mouse Button Pressed: | |
-------------------------------------------------------------------------------- | |
currentTool = cp.apple.finalcutpro.timeline.toolbar.tool() | |
hs.eventtap.event.newKeyEvent("h", true):post() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local loupedeckServiceBundleID = "com.loupedeck.Loupedeck2" | |
local loupdeckConfigBundleID = "com.loupedeck.loupedeckconfig" | |
shouldRestart = false | |
local function sleepWatcherCallback(event) | |
if event == hs.caffeinate.watcher.systemWillSleep then | |
-- If going to sleep, lets kill the Loupedeck Service: | |
local app = hs.application.get(loupedeckServiceBundleID) | |
if app then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- === plugins.finalcutpro.automate === | |
--- | |
--- A plugin that creates new FCPXML's based off JSON data. | |
local log = require("hs.logger").new("automate") | |
local json = require("hs.json") | |
local tools = require("cp.tools") | |
local fcp = require("cp.apple.finalcutpro") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE AudioChannelLayouts | |
[ | |
<!ELEMENT AudioChannelLayouts (LayoutCategory)*> | |
<!ELEMENT LayoutCategory (layout)*> | |
<!ATTLIST LayoutCategory ChannelValence CDATA #REQUIRED> | |
<!ELEMENT layout (name, channel_valence, item*)> | |
<!ELEMENT item (name, channel_map?, routing_map?)> | |
<!ELEMENT channel_map (channel)*> | |
<!ELEMENT routing_map (routing)*> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE AudioChannelLayouts | |
[ | |
<!ELEMENT AudioChannelLayouts (LayoutCategory)*> | |
<!ELEMENT LayoutCategory (layout)*> | |
<!ATTLIST LayoutCategory ChannelValence CDATA #REQUIRED> | |
<!ELEMENT layout (name, channel_valence, item*)> | |
<!ELEMENT item (name, channel_map?, routing_map?)> | |
<!ELEMENT channel_map (channel)*> | |
<!ELEMENT routing_map (routing)*> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------- | |
-- F I N A L C U T P R O A P I -- | |
-------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------- | |
--- === cp.apple.finalcutpro.main.KeywordEditor === | |
--- | |
--- Keyword Editor Module. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------- | |
-- K E Y W O R D S P L U G I N -- | |
-------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------- | |
--- === plugins.finalcutpro.browser.keywords === | |
--- | |
--- Browser Keywords |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ax = require("hs._asm.axuielement") | |
app = hs.application("Final Cut Pro") | |
ae = ax.applicationElement(app) | |
o = ax.observer.new(app:pid()) | |
processChildren = function(child) | |
failureCount = 0 | |
failures = "" | |
for i, notification in pairs(ax.observer.notifications) do | |
local status, err = pcall(function() o:addWatcher(child, notification) end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
-- | |
-- FINAL CUT PRO ENHANCEMENTS v1.0 | |
-- | |
-- Thrown together by Chris Hocking @ LateNite Films | |
-- https://latenitefilms.com | |
-- | |
-- You can download the latest version here: | |
-- https://latenitefilms.com/blog/final-cut-pro-enhanced-match-frame/ | |
-- |