I need to find a way to control flow, and the existing If & ScopeIf options don’t appear to be the solution.
I have a graph that analyses and populates data for Spaces, Areas and other elements simultaneously. Currently when that graph is run, errors will be thrown if there are no spaces, or if there are no Areas in the project.
On controlled tests I have found that using If or ScopeIf will still throw the errors, which is exactly what I need to avoid.
I can think of the following possible options:
- An option to control the route OUT of a node instead of the opposite used by the If method
- An option to split the graphs up, using a parent graph that only executes a child graph if a boolean is true
If not with standard nodes, could either of the above be possible via Python? I suspect option 1 would be, though I have 30+ nodes after the point where the first error is thrown that I’d then have to write in Python.
I understand some errors may be harmless, but given that we’ll be using Dynamo Player to run these scripts it won’t be possible to tell if it’s a harmless error or another that’s causing the issue without opening up the full graph.
Any and all advice would be much appreciated, thanks!