Documentation

Learn how to use FlowCanvas

Download PDF Version

Using Macros

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 it’s 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)…,

MacroDone

…will look like this when added within a flowscript.

MacroInFS

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.

MacroBlackboard

Finaly, here are some important things to keep in mind when working with Macros.

  • Because Macros are always .asset files, they can’t have scene object reference assigned within the nodes of the Macro, but you are free to have scene object references in the Macro node inputs used in the flowscript itself.
  • Generaly speaking, it is wise to not have event nodes within a Macro. While it will work fine, it’s not suggested as a workflow.
  • A Macro does not need to have Flow inputs and outputs. You can remove the ones automaticaly added when creating a new macro if you don’t need them.
Yes No Suggest edit
5 of 5 users found this section helpful
Suggest Edit