#cp.apple.finalcutpro.inspector.color.ColorWell

Represents a single Color Well in the Color Wheels Inspector.


#API Overview

Constants - Useful values which cannot be changed

Functions - API calls offered directly by the extension

Constructors - API calls which return an object, typically one that offers API methods

Fields - Variables which can only be accessed from an object returned by a constructor

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Constants

Signaturecp.apple.finalcutpro.inspector.color.ColorWell.KEY_PRESS
TypeConstant
DescriptionThis can be used with nudge to shift by the same distance
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 30

#Functions

Signaturecp.apple.finalcutpro.inspector.color.ColorWell.matches(element)
TypeFunction
DescriptionChecks if the specified element is a Color Well.
Parameters
  • element - The element to check
Returns
  • true if the element is a Color Well.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 246

#Constructors

Signaturecp.apple.finalcutpro.inspector.color.ColorWell(parent, uiFinder[, hueShift]) -> ColorWell
TypeConstructor
DescriptionCreates a new ColorWell instance, with the specified parent and finder function. The finder function should return the specific color well UI element that this instance represents.
Parameters
  • parent - The parent object
  • uiFinder - Returns the axuielement that represents the color well.
  • hueShift - The amount to shift the hue.
Returns
  • A new ColorWell instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 259

#Fields

Signaturecp.apple.finalcutpro.inspector.color.ColorWell.center <cp.prop: point; read-only>
TypeField
DescriptionThe center point of the ColorWell. A table with {x=..., y=...}.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 304

Signaturecp.apple.finalcutpro.inspector.color.ColorWell.colorOrientation <cp.prop: table>
TypeField
DescriptionProvides the orientation of the color as a table containing an up and right value.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 356

Signaturecp.apple.finalcutpro.inspector.color.ColorWell.colorPosition <cp.prop: hs.geometry.point>
TypeField
DescriptionX/Y screen position for the current color value of the Color Well. This ignores the bounds of the
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 334

Signaturecp.apple.finalcutpro.inspector.color.ColorWell.focused <cp.pref: boolean>
TypeField
DescriptionGets and sets whether the Color Well has focus.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 279

Signaturecp.apple.finalcutpro.inspector.color.ColorWell.puckPosition <cp.prop: hs.geometry.point>
TypeField
DescriptionAbsolute X/Y screen position for the puck in the Color Well. Colours outside the bounds are clamped inside the color well.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 313

#Methods

Signaturecp.apple.finalcutpro.inspector.color.ColorWell:nudge(right, up) -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that nudges the colorPosition by right/up values. Negative right values shift left, negative up values shift down. You may have decimal shift values.
Parameters
  • right - The number of steps to shift right. May be negative to shift left.
  • up - The number of pixels to shift down. May be negative to shift down.
Returns
  • The ColorWell instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 428

Signaturecp.apple.finalcutpro.inspector.color.ColorWell:reset() -> self
TypeMethod
DescriptionResets the color wheel.
Parameters
  • None
Returns
  • The ColorWell instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 444

Signaturecp.apple.finalcutpro.inspector.color.ColorWell:select() -> cp.apple.finalcutpro.inspector.color.ColorWell
TypeMethod
DescriptionSelects this color well.
Parameters
  • None
Returns
  • The ColorWell instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWell.lua line 389