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

From Neos Wiki
Jump to navigation Jump to search
(Created page with "<code>LoopEnd</code>出力は、<code>LoopIteration</code>から始まった最終インパルス連鎖が終了すると、インパルスを出力します。")
(Created page with "<code>Iteration</code>の出力値は、<code>Reverse</code>の値によって、<code>LoopIteration</code>から新しいインパルスが出力するたびに増加また...")
Line 30: Line 30:
  
  
The <code>Iteration</code> output value is either incremented or decremented each time a new impulse is fired from <code>LoopIteration</code>, depending on the value of <code>Reverse</code>. If <code>Reverse</code> is False, <code>Iteration</code> is incremented each time an impulse is fired from <code>LoopIteration</code> starting with the value 0, during the first iteration, and ending with <code>Count</code> - 1 on the final iteration. If <code>Reverse</code> is True, the <code>Iteration</code> value is <code>Count</code> - 1 on the first iteration and decremented each time down to 0 on the final iteration.
+
<code>Iteration</code>の出力値は、<code>Reverse</code>の値によって、<code>LoopIteration</code>から新しいインパルスが出力するたびに増加または減少します。<code>Reverse</code> False の場合、<code>Iteration</code> <code>LoopIteration</code> からインパルスが発射されるたびに増加し、最初は値0で始まり、最後は<code>Count</code>で終了します。<code>Reverse</code> True の場合、<code>Iteration</code>の値は、最初は<code>Count</code>で減少し、最後は0になることになります。
  
  

Revision as of 09:17, 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からインパルスが出力される前に評価されることに注意してください。


Reverse入力は、Iteration出力値をLoopIterationごとに増加させるか減少させるか制御します。デフォルトはFalseで、Iterationは動作するたびに増加します。


LoopStart出力は、Runへインパルスを入力した後、1回インパルスを出力します。インパルス連鎖は、LoopIterationからインパルスが出力される前に完了します。


LoopIterationの出力は、インパルスを順次出力し、出力した総数が Count 入力と等しくなるまで続けます。LoopIterationから始まる各インパルス連鎖は、次のインパルスが出力される前に完了します。


LoopEnd出力は、LoopIterationから始まった最終インパルス連鎖が終了すると、インパルスを出力します。


Iterationの出力値は、Reverseの値によって、LoopIterationから新しいインパルスが出力するたびに増加または減少します。Reverse が False の場合、IterationLoopIteration からインパルスが発射されるたびに増加し、最初は値0で始まり、最後はCountで終了します。Reverse が True の場合、Iterationの値は、最初はCountで減少し、最後は0になることになります。


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