pinthenet wrote:It's an old thread but as an extension:
I can edit a macro using Sander's 'trick' but when I want to save it as a macro again, maybe after adding (or deleting) a node I have to redefine all the parameters that I want to expose with the Macro. Is there any other way to edit macros or would I have to edit the .setting file directly?
Now you've got the macro as a Group, you can expand it and edit it on the flow as you've found. Having edited it you could then copy the group on the current flow, and then paste the resulting text into a .setting file - either overwriting the existing macro file, or creating a new one in the Macros folder. When deployed again as a Macro, it will reflect your changes.
You don't need to restart Resolve or Fusion for it to see new macros, or changes to macros. The list updates automatically whenever files are added to the Macros folder, and the deployment of a macro always uses the current version of that file on disk.
If you want to change the Macro controls, eg what tool controls are exposed for editing on the macro itself, you separately have the option to right-click on the flow and choose Edit Macro. You pick the macro from the menu and will then get back the same Macro Editor UI as when you first made it, which will edit the macro file on disk and allows changing its exposed parameters. This UI can only read the macro file on disk, and so it can't see or use any changes you've made on the current flow. If you wish to both change the macro's flow and its exposed parameters, you will need to combine Edit Macro with the manual copying and pasting described above. Edit the Group macro on the flow, copy it, save it to the same or different .setting file in Macros, then select that macro in Edit Macro and alter its inputs, outputs and exposed controls.
Many advanced users will go in and edit the .setting file directly when they want to make any changes, certainly for exposed parameters but maybe also internal tool changes. Here's a great thread on WSL that goes into that in some detail, in case you've not already seen it:
Macro Building Essentials. Once you've learnt some of the syntax it is often more efficient to edit the macro in a text editor, versus trying to do it on the flow and via the limited Macro Editor UI.