After a Macro has been created, it can be added within any flowscript to be used. Adding an existing macro into a flowscript can be done either though the “Add Node” context menu and under the “MACROS” category, or by drag and dropping a Macro file into the flowscript canvas.
Once a Macro has been placed within a flowscript, all of its defined inputs and outputs (as described before), will be exposed for you to use and connect. For example, the following Macro (even though it doesn’t really do much)…,
…will look like this when added within a flowscript.
Once again, double clicking the Macro node, will open it up for you to edit.
Macros also have their own local variables, which can be used for internal data keeping within the scope of the macro only. Of course you are free to set these variables through input ports or expose them through outputs ports if so required.
Finaly, here are some important things to keep in mind when working with Macros.
© Paradox Notion 2015-2024. All rights reserved.