Final Cut FXScript text markup plugin

Download it: textmarkup.txt

Yup, it's just a .txt file. See below for installation instructions.

Here's a plugin written in FXScript for Final Cut Pro and Final Cut Express. The core text drawing part is copied from the Final Cut built-in Text plugin. It adds the ability to format text as bold, italic, bold italic, subscript, and superscript using backslash control characters in the text input. It also adds a Vertical Alignment option to control whether the bottom or top line stays in place as lines are added.

Formatting commands

Control sequence Formatting
\b bold
\i italic
\B bold italic
\I bold italic (note: capital i, not lowercase L)
\p plain (neither bold nor italic)
\^ superscript 
\_ subscript 
\- normal script (neither superscript nor subscript)

Note that there are no grouping operators. The plugin will print any text that follows a command with the same formatting until it finds another command.

Example input and output

Input text Formatted output
\By\b\_0\- = \Bx\b\^2\- + 5 \Bx y0 = x2 + 5 x
Carbon compounds:\b
CO\_2\-\p (\icarbon dioxide\p) and
\bCH\_3\-\p (\imethane\p)
Carbon compounds:
CO2 (carbon dioxide) and
CH3 (methane)
Use \\b to make text \bbold\p. Use \b to make text bold.
\ix\p\_5\_max\-\^2\^3\- might not
look very pretty
x5max23 might not
look very pretty

Installation

To install the plugin copy it into /Users/username/Library/Preferences/Final\ Cut\ Pro\ User\ Data/Plugins (for Final Cut Pro) or /Library/Application\ Support/Final\ Cut\ Express\ System\ Support/Plugins (untested, but this location should work for Final Cut Express according to the FCE 4 manual). Then restart Final Cut. The plugin will appear as "Text with Markup" in the Text generator effects bin. You can also try it without installing it by pasting the source into the FXBuilder window in Final Cut Pro.

Caveats

Links

The FXScript Reference (unofficial)
A community site that includes some information about undocumented features.
The Too Much Too Soon Free Plugins for Final Cut Pro and Final Cut Express
Includes smart deinterlacing filters, a tiled mosaic effect, and several other interesting plugins.
Steppy edges filters
FXScript filters for cleaning up chroma subsampling jaggies.
Andy's Plugins for Final Cut Pro
Drawing, blurring, text, and more.

Updates

2012 Jun 15 Indicate the download link more clearly. Add links to more FXScript pages.
2012 Jan 01 clean up the source file a little
2011 Dec 18 posted