Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 2.76 KB

cp.apple.fcpxml.title.md

File metadata and controls

25 lines (18 loc) · 2.76 KB

docs » cp.apple.fcpxml.title


FCPXML Document Title Object.

This extension was inspired and uses code based on Pipeline. Thank you Reuel Kim for making something truly awesome, and releasing it as Open Source!

API Overview

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

API Documentation

Constructors

Signature cp.apple.fcpxml.title.new(titleName, lane, offset, ref, duration, start, role, titleText, textStyleID, newTextStyle, newTextStyleAttributes) -> fcpxmlTitle Object
Type Constructor
Description Creates a new title to be used in a timeline.
Parameters
  • titleName
  • lane
  • offset
  • ref
  • duration
  • start
  • role
  • titleText
  • textStyleID
  • newTextStyle
  • newTextStyleAttributes
Returns
  • A new Title object.
Notes
  • newTextStyleAttributes is only used if newTextStyle is set to true.
  • When newTextStyle is set to true, the following atttributes can be used within the newTextStyleAttributes table:
    • font - The font name as string (defaults to "Helvetica").
    • fontSize - The font size a number (defaults to 62).
    • fontFace - The font face as a string (defaults to "Regular").
    • fontColor - The font color as a hs.drawing.color object (defaults to black).
    • strokeColor - The stroke color as a hs.drawing.color object (defaults to nil).
    • strokeWidth - The stroke width as a number (defaults to 2).
    • shadowColor - The stroke color as a hs.drawing.color object (defaults to nil).
    • shadowDistance - The shadow distance as a number (defaults to 5).
    • shadowAngle - The shadow angle as a number (defaults to 315).
    • shadowBlurRadius - The shadow blur radius as a number (defaults to 1).
    • alignment - The text alignment as a string (defaults to "center").
    • xPosition - The x position of the title (defaults to 0).
    • yPosition - The y position of the title (defaults to 0).