Search code examples
macrospatchquartz-composer

Adding A Quartz Composer Macro to the Patch Creator


Can I add a macro in Quartz Composer to the Patch Creator, so I can add it to all my compositions?


Solution

  • Yes. There are two ways you can do this:

    • Save the macro as a composition, and place the composition file in <your home folder>/Library/Graphics/Quartz Composer Patches. After you restart Quartz Composer, it'll appear in the Patch Creator.
      • Caveat: When you use a macro saved this way, a reference is created (rather than copying the actual contents of the macro), so you'll need to manually install the macro in order for it to work.
    • In Mac OS 10.6 and later, you can create a Virtual Macro. Select the patches you want to make into the Virtual Macro, go to the Editor menu, and "Add to Library".
      • Caveat: When you use a Virtual Macro, a copy will be embedded with the using composition, however these compositions will only work on 10.6 and later.