Buttons allow you to run custom Lua code from the Edit Page of Davinci Resolve to affect things in the Fusion Page. This guide will walk you through the steps to add and configure buttons.

Adding a Button

  1. Open the Add Menu: Start by finding the “Add” menu in your workspace.
  2. Choose Button: Select “Button” from the menu options.
  3. Configure Button Settings: A window will appear allowing you to:

Example

Let's create a button that prints "Hello, World!" to the console:

  1. Displayed Text: Enter “Print Message”.

  2. Width: Set the width to 0.5.

  3. Code: Enter the following Lua code:

    print("Hello, World!")
    
    

Once you have configured these settings, click “OK” to add the button to your macro. Now, whenever you click the “Print Message” button, "Hello, World!" will be printed to the console.

Conclusion

Buttons are a powerful feature in Davinci Resolve that can enhance your workflow by allowing you to execute custom Lua code easily. For more advanced uses and additional resources, refer to the official Davinci Resolve documentation.