For (LogiX node)
The For node is used to fire impulses from the
LoopIteration output a specific number of times when an impulse is received at
Countinput determines how many times impulses will be fired from the
LoopIterationoutput. The default is 0. This count, is evaluated immediately after the
LoopStartimpulse chain has completed, just before any impulses are fired from
Reverseinput controls if the
Iterationoutput value is incremented or decremented each
LoopIteration. The default is False, meaning
Iterationis incremented each iteration.
LoopStartoutput fires an impulse once after an impulse is received at
Run. This impulse chain will complete before any impulses are fired from
LoopIterationoutput fires impulses sequentially until the total number which have been fired is equal to the
Countinput. Each impulse chain started from
LoopIterationcompletes before the following one is fired. Nodes which split the chain will cause the For node to continue with subsequent iterations without waiting for the split chain's completion.
LoopEndoutput fires an impulse once the final impulse chain started from
Iterationoutput value is either incremented or decremented each time a new impulse is fired from
LoopIteration, depending on the value of
Iterationis incremented each time an impulse is fired from
LoopIterationstarting with the value 0, during the first iteration, and ending with
Count- 1 on the final iteration. If
Reverseis True, the
Count- 1 on the first iteration and decremented each time down to 0 on the final iteration.
Impulse chains started from this node effectively continue the one which arrived at
Run, meaning that any temporary values from previous nodes are still available. All iterations from
LoopIteration complete within a single frame update and therefore this can produce framerate hitches if an excessively demanding computation is performed. There is a failsafe which will put this node into an error state (node visual turns red) if a frame is delayed excessively - this helps prevent complete freezes.