Difference between revisions of "Drive (LogiX node)/ja"
(Created page with "<code>StopDrive</code>入力にインパルスが到達するたびに<code>OnStopDrive</code>からインパルスを出力します。これは、<code>StopDrive</code>に...") |
|||
Line 23: | Line 23: | ||
− | + | <code>StopDrive</code>入力にインパルスが到達するたびに<code>OnStopDrive</code>からインパルスを出力します。これは、<code>StopDrive</code>に到着したインパルスの連鎖を継続させます。 | |
Revision as of 20:47, 6 February 2022
Drive | ||
---|---|---|
Inputs | ||
Impulse | StartDrive | |
Impulse | StopDrive | |
dummy | Source | |
Outputs | ||
IField`1 | DriveTarget | |
Impulse | OnStartDrive | |
Impulse | OnStopDrive | |
Impulse | OnHook | |
Bool | IsDriving | |
dummy | HookedValue |
Driveノードは StartDrive
でインパルスを受け取ると、入力 Source
値で参照されている DriveTarget
をドライブし始めます。ドライブはStopDrive
でインパルスを受信すると停止します。
使用方法
ノードブラウザからノードが生成されたとき、Source
入力は'dummy'のデータ型を持っています。しかし、適切なワイヤが接続されると、ノードは正しい値型にオーバーロードされます。
StartDrive
入力にインパルスが到着するたびにOnStartDrive
からインパルスを出力します。これはStartDrive
に到着したインパルスの連鎖を継続させます。
StopDrive
入力にインパルスが到達するたびにOnStopDrive
からインパルスを出力します。これは、StopDrive
に到着したインパルスの連鎖を継続させます。
The OnHook
fires an impulse whenever the DriveTarget
is driven with the Source
value and another source (e.g. a Write node or ButtonValueSet component) attempts (but is not able) to overwrite the value.
The IsDriving
output is True while the DriveTarget
is driven with the Source
value, otherwise False.
The HookedValue
output provides the value which another source attempted to set the DriveTarget
to when an impulse is fired from OnHook
. The value is only available for the duration of the impulse chain started from OnHook
.
Note that, when an impulse is received at StartDrive
the drive target will become driven by the Source
value regardless of whether it was already driven by some other source i.e. control of the target value is overridden.
Color | Label | Type |
DriveTarget | IField<T> | |
OnStartDrive | Impulse | |
OnStopDrive | Impulse | |
OnHook | Impulse | |
IsDriving | Boolean | |
HookedValue | (dummy) |
Usage
ソース入力とHookedValue出力は未設定のダミー型で始まり、これらのいずれか、またはDriveTargetが設定されると、ノードは適切な型に再設定されます。TargetValueによって参照される値が別のドライブノードを含む別のソースによって上書きされている場合、StartDriveでインパルスを受信すると、前の上書き設定は新しいドライブソースによって上書きの設定が上書きされます。ドライブノードがDriveTargetにアクティブな上書き先を設定し、その値への書き込みを試みると、OnHookからインパルスが発射され、HookedValue出力はターゲットに書き込まれたであろう値を提供します(OnHookからのインパルスチェーンの間は利用可能)。OnStartDriveとOnStopDriveは、それぞれStartDriveとStopDriveでのインパルスの結果として上書き動作が正常に起動または停止したときにインパルスを発生させます。
Actions | ||||||
---|---|---|---|---|---|---|
Back | -- | ++ | Drive | Drive Playback | Tween | Write |
Write Latch | Write Ref | Write Ref Latch |