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.
Let's create a button that prints "Hello, World!" to the console:
Displayed Text: Enter “Print Message”.
Width: Set the width to 0.5.
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.
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.