Dear All,
please help me. Dynamo script is taking too much time in process the data of my entire script that involves several object categories.
Is there any way to stop running a “branch” of script if the list of the element is null?
I think what you need is list filer by bool mask, here is an example how to use it:
also, you can use unconnect wires from some nodes, the things that take time, anything creating heavy geometry or with cross product lacing and huge number of indices,
and you write click any node or group of nodes and select “Freeze” to stop it working, and of course you should be running the workflow on manual mode, every few connections, hit run and continue until you reach the end
Thanks, but unconnect or freeze can’t work for me since I need to run the script from dynamo player.
My requirement is to stop a branch of script if the list of the element is null/empty. Processing all phases when the list is empty takes time that i need to cut in the earlier stage.
Processing an empty list will usually throw an error and take nano seconds on all the nodes thereafter as they will all error. This won’t save you any time as a result. Look into simplifying the script another way.