Macros 将Quartz Composer宏添加到修补程序创建者

Macros 将Quartz Composer宏添加到修补程序创建者,macros,patch,quartz-composer,Macros,Patch,Quartz Composer,我可以将Quartz Composer中的宏添加到修补程序创建者中,以便将其添加到我的所有作品中吗?可以。有两种方法可以做到这一点: 将宏另存为合成,并将合成文件放入/Library/Graphics/Quartz Composer Patches中。重新启动Quartz Composer后,它将出现在修补程序创建者中。 警告:使用以这种方式保存的宏时,会创建一个引用(而不是复制宏的实际内容),因此需要手动安装宏才能使其工作 在Mac OS 10.6及更高版本中,可以创建虚拟宏。选择要制作

我可以将Quartz Composer中的宏添加到修补程序创建者中,以便将其添加到我的所有作品中吗?

可以。有两种方法可以做到这一点:

  • 将宏另存为合成,并将合成文件放入
    /Library/Graphics/Quartz Composer Patches
    中。重新启动Quartz Composer后,它将出现在修补程序创建者中。
    • 警告:使用以这种方式保存的宏时,会创建一个引用(而不是复制宏的实际内容),因此需要手动安装宏才能使其工作
  • 在Mac OS 10.6及更高版本中,可以创建虚拟宏。选择要制作到虚拟宏中的修补程序,转到编辑器菜单,然后选择“添加到库”。
    • 警告:当您使用虚拟宏时,副本将嵌入using composition,但这些composition仅适用于10.6及更高版本

    • smokris的反应很好,尽管我发现自己不得不读几遍才能明白它的意思!如果要从现有修补程序中构建单个修补程序:单击“添加到库”,确保已选择所有要合并的修补程序,并已发布所需的输入输出,等等(smokris选项2)。我制作了一些“电源补丁”,其中只包含了我想要的相关参数/功能。你失去了你连接的各个补丁,这也许可以让事情变得简洁

      如果要保留整个合成和配置的补丁,以便调整和重新布线,请手动导入(smorkis选项1)。真麻烦

      --但也不一定是这样。如果您使用Automator,您可以包含一个Apple脚本步骤来为您执行所有导入操作!例如,写一个:

      *获取指定的查找器项(要导入的qtz合成) *打开查找器项目 *运行apple脚本:

      on run {input, parameters}
      
          tell application "Finder"
              do shell script "jay is incredible"
          end tell
          tell application "System Events"
              keystroke "a" using command down
              keystroke "c" using command down
              keystroke "`" using command down
              keystroke "v" using command down
              delay 1
      
          end tell
      
          return input
      end run
      
      *open finder items
      *run apple script:
      
      on run {input, parameters}
      
          tell application "System Events"
              keystroke "w" using command down
          end tell
      
          return input
      end run
      
      通过这种方式,您可以通过Spotlight(命令空格键)打开Automator应用程序,它将在1-2次单击后导入合成。太棒了