Difference between revisions of "For (LogiX node)/ja"

From Neos Wiki
Jump to navigation Jump to search
(Created page with "'''For'''ノードは、<code>Run</code>へインパルスを入力したときに、<code>LoopIteration</code>出力から特定の回数だけインパルスを出力する...")
(Created page with "== 使用方法 == <code>Count</code>入力は、<code>LoopIteration</code>出力から何回インパルスが出力されるかを決定するものです。この値は、<...")
Line 14: Line 14:
 
'''For'''ノードは、<code>Run</code>へインパルスを入力したときに、<code>LoopIteration</code>出力から特定の回数だけインパルスを出力するために使用されるノードです。
 
'''For'''ノードは、<code>Run</code>へインパルスを入力したときに、<code>LoopIteration</code>出力から特定の回数だけインパルスを出力するために使用されるノードです。
  
== Usage ==
+
== 使用方法 ==
The <code>Count</code> input determines how many times impulses will be fired from the <code>LoopIteration</code> output. Default is 0. Note that this is evaluated immediately after the <code>LoopStart</code> impulse chain has completed, just before any impulses are fired from <code>LoopIteration</code>.
+
<code>Count</code>入力は、<code>LoopIteration</code>出力から何回インパルスが出力されるかを決定するものです。この値は、<code>LoopStart</code>インパルス連鎖が完了した直後、<code>LoopIteration</code>からインパルスが出力される前に評価されることに注意してください。
  
  

Revision as of 09:13, 12 February 2022

Other languages:
English • ‎日本語
For
'For' LogiX node
Inputs
  Impulse Run
  Int Count
  Bool Reverse
Outputs
  Impulse LoopStart
  Impulse LoopIteration
  Impulse LoopEnd
  Int Iteration

Forノードは、Runへインパルスを入力したときに、LoopIteration出力から特定の回数だけインパルスを出力するために使用されるノードです。

使用方法

Count入力は、LoopIteration出力から何回インパルスが出力されるかを決定するものです。この値は、LoopStartインパルス連鎖が完了した直後、LoopIterationからインパルスが出力される前に評価されることに注意してください。


The Reverse input controls whether the Iteration output value is incremented or decremented each LoopIteration. Default is False, meaning Iteration is incremented each iteration.


The LoopStart output fires an impulse once after an impulse is received at Run. The impulse chain will complete before any impulses are fired from LoopIteration.


The LoopIteration output fires impulses sequentially until the total number which have been fired is equal to the Count input. Each impulse chain started from LoopIteration completes before the following one is fired.


The LoopEnd output fires an impulse once the final impulse chain started from LoopIteration has ended.


The Iteration output value is either incremented or decremented each time a new impulse is fired from LoopIteration, depending on the value of Reverse. If Reverse is False, Iteration is incremented each time an impulse is fired from LoopIteration starting with the value 0, during the first iteration, and ending with Count - 1 on the final iteration. If Reverse is True, the Iteration value is Count - 1 on the first iteration and decremented each time down to 0 on the final iteration.


Note that all 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.

Examples

Node Menu

Flow
Back Events Boolean Latch Delay Delay With Value Dynamic Impulse Receiver Dynamic Impulse Receiver With Value`1
Dynamic Impulse Trigger Dynamic Impulse Trigger With Value`1 Fire On Change Fire On False Fire On True Fire While True For
If Impulse Demultiplexer Impulse Multiplexer Impulse Timeout Local Fire On Change`1 Local Fire On True Local Fire On False
One Per Frame Pulse Random Sequence Timer Update Updates Delay Updates Delay With Value
While