Adapting an Existing FxPlug for Distribution

When creating products for Final Cut Pro and Motion, it is very common for developers and/or coding agents to build an installer that bundles both the FxPlug container app as well as the Motion Templates required to advertise any plug-ins in Final Cut Pro’s effect browser. The installer usually copies Motion Templates to a temporary location on the destination volume and then installs them to one of the locations Final Cut Pro loads templates from, through a post-install script.

Sometimes the same post-installation script is also used to manually register the plug-in with PlugInKit and/or to force Launch Services to register the newly installed container app – again with the desired side-effect of having PlugInKit recognize the FxPlug extension within.

Coding agents have largely adoped this strategy when asked to create plug-ins for Final Cut Pro. To prepare such a product for distribution via FxFactory, a different delivery method is required. This document outlines the important differences.

Meet FxTemplates

The installer that is distributed via FxFactory should no longer bundle any Motion project files. Instead, it will embed a single FxTemplates container. When installed under /Library/Application Support/FxFactory, this container is used by FxFactory to deploy Motion Templates, with appropriate modifications, for the current user account. This allows FxFactory to implement more sophisticated installation behaviors linked to a product’s licensing status, its eligibility for upgrades, etc.

The FxFactory directory in Application Support
The FxFactory directory in Application Support

Just as your installer no longer needs a post-install script to copy Motion project files, it should no longer rely on that script to register your FxPlug with PlugInKit. Recent versions of FxFactory automatically register FxPlug and Workflow Extensions after installation of your product is complete.

Preparing Your Product for FxFactory

The following instructions assume that you have already registered your developer ID and have been assigned a FTP directory to exchange files with us.

  1. Upload the existing installer, as notarized by Apple, to your directory on the FTP server. It is recommended that the FxPlug container app be installed in the Applications folder. Some developers prefer to group all their products under a folder with their company name, but this should be done according to your preference. It is neither a recommendation nor a requirement for distributing products via FxFactory. On the other hand, we do recommend that the application not be installed at non-standard locations on the system, such as the legacy FxPlug folder originally intended for FxPlug 2 plug-ins.
  2. Email us to let us know the UUID you have picked for your product. If needed, create a new UUID via the uuidgen command in the Terminal.
  3. We create a proxy for your product by installing your app at its final location. We also create Editable and Commercial versions of a new FxTemplates container, based on the Motion Templates that your plug-in requires to run in Final Cut Pro.
  4. Download the Editable and Commercial versions of the FxTemplates container we created for your plug-in.
  5. Modify your installer so that it no longer embeds Motion project files.
  6. If your installer was using a post-install script to copy Motion project files and/or register your FxPlug with PlugInKit, remove the post-install script altogether.
  7. Add the Commercial FxTemplates to your installer, making sure its install location is /Library/Application Support/FxFactory.
  8. Upload the new, notarized version of your installer to your FTP directory.

Your installer is now responsible for installing the Commercial FxTemplates on end-users systems, but as a developer, you have other reasons to work with FxTemplates. Installing either editable or commercial container is easy: just double-click it in the Finder, and FxFactory will automatically copy it to the correct location on your system:

  • Editable containers are always copied by FxFactory to ~/Library/Application Support/FxFactory. This is because developers may need to make changes to the project, and that location has default read/write access for the current user account.
  • Commercial containers are copied to /Library/Application Support/FxFactory with the assistance of our privileged helper tool. This is because commercial products must be visible to, and accessible by, all user accounts.

Let’s spell out an important requirement: You can only have one of the above versions installed at any one time. To enforce this rule, when you install one version, FxFactory will overwrite the counterpart that may already be present. To prevent the accidental loss of work, you will always be prompted before FxFactory overwrites the Editable version of your product.

Confirmation required to overwrite any Editable products
Confirmation required to overwrite any Editable products

Most developers work only with the Editable version of the FxTemplates, installing the Commercial version of FxTemplates via their finished installer, and then only to test the end-user experience.

Why Provide an Editable Version at All?

We provide the editable version of the FxTemplates container for two reasons. At first, you will familiarize yourself with the features provided by our platform. FxTemplates are pretty darn useful. They let you:

  • Consolidate media shared by multiple templates at the click of a button, so your product retains one copy.
  • Rename templates or the groups they appear in, assign them to a theme, all without affecting compatibility with existing projects.
  • Recompress image assets to more efficient formats, such as converting PNG and JPEG to HEIF.
  • Make batch modifications to the Color Processing options, allowing you to migrate multiple templates from SDR to HDR or Automatic color processing.
  • Find out what Fonts are used by your templates, and if necessary, embed those fonts within your product.

Past the initial discovery phase, you will be installing and working with the Editable version of your FxTemplates when it’s time to make a new version of your product. If your plug-in gained new parameters in going from version 1.0 to version 1.1, you will select your template and click the Edit in Motion button to publish the new parameters:

To help with keeping track of your changes and/or prepare for a commercial upgrade, you might opt to update each template with its new version number:

…and ultimately you must assign the new version number to the product as a whole:

When done with your changes:

  • Save your changes and close the FxTemplates container.
  • Hold down the ⌥ option key, and click the Save Archive button that appears next to your product’s icon in FxFactory’s main window.
  • Upload the resulting archive, conveniently tagged with the (Editable) suffix, to your FTP directory.
  • Notify us of the pending update.
  • We will download your submission, create new Editable and Commercial versions for you.
  • The Commercial version can be used to creata new version of your product installer.
  • The Editable version should be the basis for all future updates to your product.

It is important to always download and use the Editable version we post for you on the FTP server, since we may apply our own configuration to the container in preparation for release.

What About the Proxy Mentioned Earlier?

FxFactory works with a number of separate container formats. Proxies create a link between our app and your product. Each product, including your own, will require a proxy to be advertised and licensed inside the FxFactory app. But proxies are delivered by our servers. They are not meant to be installed as part of your product.

During the development phase, our servers are not going to provide a proxy for your product. Instead, we will email you a proxy that – once installed – allows you to test the interaction between your own code and the FxFactory framework.

Next Steps

If you wish to add custom banners or section dividers to your plug-in’s user interface, you can look into supplementing your product with native plug-ins built through FxFactory.