Macro

难度LEVELL3 · 高级L3 · Advanced 领域TOPIC视觉特效

先学:Prerequisites: 节点编辑器

学习目标LEARNING OBJECTIVES

学完你能把一串节点折叠成宏(Macro),只暴露需要调整的参数,并保存为剪辑页面可直接拖用的模板(Template)。

概念说明CONCEPTS

宏(Macro)是把选中的节点树打包成的单个节点——内部结构收起,只露出你勾选给使用者的参数,效果和模板一样反复拖用。

  • 选中即打包:在节点编辑器选中要打包的节点,右键选 Macro > Create Macro
  • 勾选才暴露Macro Editor 列出全部节点和参数,只有勾了复选框的参数才会出现在使用时的 Inspector 里。
  • 参数能改名:把 StyledText 这类内部名改成"姓名""职位",模板用起来才看得懂。
  • 存对位置才通用:默认位置只供 Fusion 页面使用;存进 Templates/Edit/Titles 才会出现在剪辑页面效果库。
  • 保存后要重启:新存的模板要重启 DaVinci Resolve,才会被剪辑页面的效果库(Effects Library)收录。

操作步骤STEPS

  1. 在节点编辑器按重要程度顺序选中要打包的节点(先选的排在宏列表前面)
  2. 右键任一选中节点,选择 Macro > Create Macro右键菜单创建宏
  3. Macro Name 输入模板名,只勾选使用者需要调的参数
  4. 把暴露的参数改成看得懂的名称,点击 Close 并确认保存
  5. 保存到 DaVinci Resolve/Fusion/Templates/Edit/Titles,重启后在剪辑页面效果库拖用剪辑页面效果库里的自制模板

练习PRACTICE

  1. 把"文字 + 变换"两个节点打包成宏,只暴露文字内容参数并改成好懂的名字。
  2. 重启后到剪辑页面把宏拖到时间线上,在 Inspector 改文字验证。

常见问题FAQ

做好的宏在剪辑页面找不到?

检查两件事:保存位置必须是 Fusion/Templates 下的 Edit/Titles 文件夹;保存后要重启 Resolve 才生效。

宏做好后还能改吗?

能。回到 Fusion 页面修改原来的节点树,重新 Create Macro 覆盖保存即可,记得再重启一次。

宏和复制粘贴节点有什么区别?

宏只暴露你勾选的参数,使用者不会误动内部结构;宏存成文件还能跨项目、跨页面反复拖用。

Learning Objectives学习目标

After this card you can collapse a chain of nodes into a Macro that exposes only the controls you choose, and save it as a Template you can drag onto clips in the Edit page.

Concepts概念说明

A Macro packs a selected node tree into a single node — the internals tuck away, only the parameters you ticked stay visible, and the whole thing is reusable like a template.

  • Selection becomes the package: select the nodes in the Node Editor, right-click, and choose Macro > Create Macro.
  • Tick to expose: the Macro Editor lists every node and parameter; only checked parameters appear later in the user's Inspector.
  • Rename what you expose: turn internal names like StyledText into "Name" or "Job Title" so the template reads clearly.
  • Location decides where it works: the default save location serves the Fusion page only; save into Templates/Edit/Titles for the Edit page Effects Library.
  • Restart after saving: newly saved templates show up in the Edit page Effects Library only after you relaunch DaVinci Resolve.

Steps操作步骤

  1. Select the nodes to package in the Node Editor, most important first (selection order sets the macro list order)
  2. Right-click any selected node and choose Macro > Create MacroCreating a macro from the right-click menu
  3. Type a template name in Macro Name and tick only the parameters the user should adjust
  4. Rename the exposed parameters into plain language, then click Close and confirm saving
  5. Save into DaVinci Resolve/Fusion/Templates/Edit/Titles, relaunch, and drag it from the Edit page Effects LibraryYour custom template in the Edit page Effects Library

Practice练习

  1. Pack a "text + transform" pair into a macro that exposes only the text content, renamed clearly.
  2. After relaunching, drag the macro onto a timeline clip in the Edit page and edit the text in the Inspector to verify.

FAQ常见问题

My macro doesn't show up in the Edit page?

Check two things: it must be saved in the Edit/Titles folder under Fusion/Templates, and it only appears after you relaunch Resolve.

Can I still edit a finished macro?

Yes. Go back to the Fusion page, adjust the original node tree, and run Create Macro again to overwrite it — then relaunch once more.

How is a macro different from copy-pasting nodes?

A macro exposes only your chosen parameters, so nobody breaks the internal wiring by accident — and as a saved file it travels across projects and pages.

深度资料:宏 →Deep dive: 宏 →