Skip to content

Commit

Permalink
Merge pull request #3261 from CommandPost/issue/3260-color-adjustment…
Browse files Browse the repository at this point in the history
…s-nil-error

Only load Color Adjustment Actions if using 10.6.6 or later
  • Loading branch information
latenitefilms committed Aug 30, 2023
2 parents d352d7e + bab777c commit ed8c7a9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/plugins/finalcutpro/inspector/coloradjustments.lua
Expand Up @@ -4,12 +4,14 @@

local require = require

--local log = require "hs.logger".new "videoInspector"
local log = require "hs.logger".new "colorAdjustments"

local deferred = require "cp.deferred"
local fcp = require "cp.apple.finalcutpro"
local i18n = require "cp.i18n"

local semver = require "semver"

local plugin = {
id = "finalcutpro.inspector.coloradjustments",
group = "finalcutpro",
Expand All @@ -24,6 +26,14 @@ function plugin.init(deps)
--------------------------------------------------------------------------------
if not fcp:isSupported() then return end

--------------------------------------------------------------------------------
-- Only load plugin if FCPX 10.6.6 or later:
--------------------------------------------------------------------------------
if fcp.version() < semver("10.6.6") then
log.df("The Color Adjustment Actions require Final Cut Pro 10.6.6 or later")
return
end

local SHIFT_AMOUNTS = {0.1, 1, 5, 10, 15, 20, 25, 30, 35, 40}

--------------------------------------------------------------------------------
Expand Down

0 comments on commit ed8c7a9

Please sign in to comment.