Difference between revisions of "For (LogiX node)/ja"
(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: | ||
− | + | <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
For | ||
---|---|---|
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 の場合、Iteration
は LoopIteration
からインパルスが発射されるたびに増加し、最初は値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.