#cp.apple.fcpxml

A collection of tools for handling FCPXML Documents.


#Submodules


#API Overview

Constants - Useful values which cannot be changed

Functions - API calls offered directly by the extension


#API Documentation

#Constants

Signaturecp.apple.fcpxml.HAS_OFFSET_ATTRIBUTE <table: string:boolean>
TypeConstant
DescriptionTable of elements that have an offset attribute.
NotesNone
Sourcesrc/extensions/cp/apple/fcpxml/init.lua line 20

#Functions

Signaturecp.apple.fcpxml.latestDTDVersion() -> string
TypeFunction
DescriptionGets the latest supported FCPXML DTD version.
Parameters
  • None
Returns
  • The latest DTD version as a string, for example: "1.8".
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/fcpxml/init.lua line 61

Signaturecp.apple.fcpxml.supportedDTDs() -> table
TypeFunction
DescriptionReturns a table containing the version numbers of all the DTD documents included in this extension.
Parameters
  • None
Returns
  • A table of supported DTD versions as strings.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/fcpxml/init.lua line 38

Signaturecp.apple.fcpxml:valid(path[, version]) -> string|boolean, string
TypeFunction
DescriptionValidates an FCPXML document against a document type definition (DTD).
Parameters
  • path - The path and path of the FCPXML document you want to validate.
  • version - The optional FCPXML version you want to validate against.
Returns
  • The FCPXML path or false if not valid.
  • The output from xmllint as a string.
Notes
  • If a version is not supplied, we will try and read the version
  • from the file itself, and if that's not possible, we'll default
  • to the latest FCPXML version.
  • If a fcpxmld bundle path is supplied, this function will return
  • the path to the Info.fcpxml document if valid.
ExamplesNone
Sourcesrc/extensions/cp/apple/fcpxml/init.lua line 76