5
$\begingroup$

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!

$\endgroup$
  • 1
    $\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$ – Jacques Lucke Nov 2 '16 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$ – Leon Cheung Nov 2 '16 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$ – Kristof Meirlaen Nov 2 '16 at 23:09
  • $\begingroup$ @KristofMeirlaen There was a discussion on loop break between Jacques and me. FYI $\endgroup$ – Leon Cheung Nov 3 '16 at 0:53
2
$\begingroup$

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.