FlowCanvas Forums › Support › Nesting/collapsing/subgraphs? › Reply To: Nesting/collapsing/subgraphs?
Hello and welcome,
Sub-Graphs are basically what Macros are. Macros are a completely separate flowScript with input and outputs, which can be re-used any number of time on any flowScript. To create a Macro, you can do so from within the right click menu in a flowScript (for adding nodes) and with the “Macros/Create New Macro” option.
Macros are created as assets. To re-use a created macro, you can either drag and drop the Macro asset from the “Project” panel into a flowScript, or add an existing Macro, from within the same right click menu within a flowScript. All existing Macros in the project will appear under the “Macros” menu category.
Regarding Node Groups and Functions, right now they are not foldable, but folding Node Groups is something I plan to implement in a future version.
Please let me know if the above works for you or if you need more details on Macros.
Thank you.