Just wonder whether subprograms can be totally muted in ways other than just deleting it. I ask bacause:

For example, I tried to setup a loop in another nodetree, Then disable auto execution for that nodetree. However, it can still be invoked in other nodetrees, because subprograms seem to be kinda "global" data.

In some cases I want to mute the subprogram to improve overall performance by disabling the execution. Is that helpful? Can I do that? Or other better solutions? Thanks!

  • 2
    $\begingroup$ I think there is no good solution to this yet.. I'm thinking about an additional boolean input in the Invoke Subprogram node that tells the node wether to execute the subprogram or not. Will see. $\endgroup$ Nov 2, 2016 at 14:33
  • $\begingroup$ Oh I bet that can be helpful especially for complex setups, you know, I mean those with hundreds of nodes, though not sure whether it can make enough sense for a performance leap. $\endgroup$ Nov 2, 2016 at 15:42
  • $\begingroup$ I thought it might have been possible with the "loop break", but I just tried it out and it does not cause the loop to stop. Which makes me wonder: what is the "loop break" node for and how it is used? but i"ll open another question for that :) $\endgroup$ Nov 2, 2016 at 23:09
  • $\begingroup$ @KristofMeirlaen There was a discussion on loop break between Jacques and me. FYI $\endgroup$ Nov 3, 2016 at 0:53

1 Answer 1


EDIT: New Version

Same Principle, but how about ditching additional Subprogram and using Get List Element instead:

Old Version

I put actual Subprogram(red) inside another one (blue) as a Parameter to get ability to dynamically change number of iterations. Condition is controling execution of blue Subprogram

New: enter image description here

Old: enter image description here

  • $\begingroup$ 0 iteration, interesting, quite dirty huh. X-D @JacquesLucke Your opinion here? $\endgroup$ Jan 29, 2019 at 16:04
  • $\begingroup$ Tried to combine both Subprograms inside one $\endgroup$
    – Serge L
    Jan 30, 2019 at 11:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .