# plugins.finalcutpro.export.batch.manager

Manager for the Batch Export Window.


# Submodules


# API Overview

Constants - Useful values which cannot be changed

  • DEFAULT_HEIGHT
  • DEFAULT_WIDTH
  • lastTab
  • position
  • WEBVIEW_LABEL

Variables - Configurable values

  • _handlers
  • _panels

Functions - API calls offered directly by the extension

  • addHandler
  • addPanel
  • disabledPanels
  • getHandler
  • getLabel
  • getWebview
  • hide
  • init
  • injectScript
  • maxPanelHeight
  • new
  • refresh
  • selectPanel
  • setPanelRenderer
  • show

# API Documentation

# Constants

# DEFAULT_HEIGHT

Signature plugins.finalcutpro.export.batch.manager.DEFAULT_HEIGHT -> number
Type Constant
Description Default Height of Preferences Window
Notes None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 39

# DEFAULT_WIDTH

Signature plugins.finalcutpro.export.batch.manager.DEFAULT_WIDTH -> number
Type Constant
Description Default Width of Preferences Window
Notes None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 44

# lastTab

Signature plugins.finalcutpro.export.batch.manager.lastTab
Type Constant
Description Returns the last tab saved in settings.
Notes None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 64

# position

Signature plugins.finalcutpro.export.batch.manager.position
Type Constant
Description Returns the last frame saved in settings.
Notes None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 59

# WEBVIEW_LABEL

Signature plugins.finalcutpro.export.batch.manager.WEBVIEW_LABEL -> string
Type Constant
Description The WebView Label
Notes None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 34

# Variables

# _handlers

Signature plugins.finalcutpro.export.batch.manager._handlers -> table
Type Variable
Description Table containing handlers.
Notes None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 54

# _panels

Signature plugins.finalcutpro.export.batch.manager._panels -> table
Type Variable
Description Table containing panels.
Notes None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 49

# Functions

# addHandler

Signature plugins.finalcutpro.export.batch.manager.addHandler(id, handlerFn) -> string
Type Function
Description Adds a Handler
Parameters
  • id - The ID
  • handlerFn - the handler function
Returns
  • Nothing
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 95

# addPanel

Signature plugins.finalcutpro.export.batch.manager.addPanel(params) -> plugins.finalcutpro.export.batch.manager.panel
Type Function
Description Adds a new panel with the specified params to the Batch Export manager.
Parameters
  • params - The parameters table. Details below.
Returns
  • The new panel instance.
Notes
  • The params can have the following properties. The priority and id and properties are required.
  • ** priority - An integer value specifying the priority of the panel compared to others.
  • ** id - A string containing the unique ID of the panel.
  • ** label - The human-readable label for the panel icon.
  • ** image - The hs.image for the panel icon.
  • ** tooltip - The human-readable details for the toolbar icon when the mouse is hovering over it.
  • ** closeFn - A callback function that's triggered when the Preferences window is closed.
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 525

# disabledPanels

Signature plugins.finalcutpro.export.batch.manager.disabledPanels(ids) -> none
Type Function
Description Sets which panels are disabled.
Parameters
  • ids - A table of panel ID's to disable
Returns
  • None
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 451

# getHandler

Signature plugins.finalcutpro.export.batch.manager.getHandler(id) -> string
Type Function
Description Returns the handler for a given ID.
Parameters
  • id - The ID
Returns
  • Table
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 109

# getLabel

Signature plugins.finalcutpro.export.batch.manager.getLabel() -> string
Type Function
Description Returns the Webview label.
Parameters
  • None
Returns
  • The Webview label as a string.
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 82

# getWebview

Signature plugins.finalcutpro.export.batch.manager.getWebview() -> hs.webview
Type Function
Description Returns the Webview of the Preferences Window.
Parameters
  • None
Returns
  • A hs.webview
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 69

# hide

Signature plugins.finalcutpro.export.batch.manager.hide() -> none
Type Function
Description Hides the Batch Export Window.
Parameters
  • None
Returns
  • None
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 395

# init

Signature plugins.finalcutpro.export.batch.manager.init() -> nothing
Type Function
Description Initialises the preferences panel.
Parameters
  • None
Returns
  • Nothing
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 229

# injectScript

Signature plugins.finalcutpro.export.batch.manager.injectScript(script) -> none
Type Function
Description Injects JavaScript into the Batch Export Webview.
Parameters
  • script - The JavaScript code you want to inject in the form of a string.
Returns
  • None
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 431

# maxPanelHeight

Signature plugins.finalcutpro.export.batch.manager.maxPanelHeight() -> number
Type Function
Description Returns the maximum size defined by a panel.
Parameters
  • None
Returns
  • The maximum panel height.
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 244

# new

Signature plugins.finalcutpro.export.batch.manager.new() -> none
Type Function
Description Creates a new Preferences Window.
Parameters
  • None
Returns
  • None
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 285

# refresh

Signature plugins.finalcutpro.export.batch.manager.refresh() -> none
Type Function
Description Refreshes the Batch Export Window.
Parameters
  • None
Returns
  • None
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 415

# selectPanel

Signature plugins.finalcutpro.export.batch.manager.selectPanel(id) -> none
Type Function
Description Selects a Batch Export Panel.
Parameters
  • id - the ID of the panel you want to select.
Returns
  • None
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 464

# setPanelRenderer

Signature plugins.finalcutpro.export.batch.manager.setPanelRenderer(renderer) -> none
Type Function
Description Sets a Panel Renderer
Parameters
  • renderer - The renderer
Returns
  • None
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 122

# show

Signature plugins.finalcutpro.export.batch.manager.show() -> boolean
Type Function
Description Shows the Preferences Window
Parameters
  • None
Returns
  • True if successful or nil if an error occurred
Notes None
Examples None
Source src/plugins/finalcutpro/export/batch/manager/init.lua line 369