Difference between revisions of "Drive (LogiX node)/ja"
(Created page with "Drive (LogiX node)") |
|||
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages></languages> | <languages></languages> | ||
− | + | {{Infobox Logix Node | |
+ | | Name = Drive | ||
+ | | Image =[[File: DriveValueNode`1Node.png | noframe | 128px | 'Drive' LogiX node ]] | ||
+ | | Input0Type = Impulse | Input0Name = StartDrive | ||
+ | | Input1Type = Impulse | Input1Name = StopDrive | ||
+ | | Input2Type = dummy | Input2Name = Source | ||
+ | | Output0Type = IField`1 | Output0Name = DriveTarget | ||
+ | | Output1Type = Impulse | Output1Name = OnStartDrive | ||
+ | | Output2Type = Impulse | Output2Name = OnStopDrive | ||
+ | | Output3Type = Impulse | Output3Name = OnHook | ||
+ | | Output4Type = Bool | Output4Name = IsDriving | ||
+ | | Output5Type = dummy | Output5Name = HookedValue | ||
+ | }} | ||
− | < | + | '''Drive'''ノードは <code>StartDrive</code> でインパルスを受け取ると、入力 <code>Source</code> 値で参照されている <code>DriveTarget</code> を[[Drive/ja|ドライブ]]し始めます。ドライブは<code>StopDrive</code>でインパルスを受信すると停止します。 |
− | == | + | == 使用方法 == |
− | + | ノードブラウザからノードが生成されたとき、<code>Source</code>入力は'dummy'のデータ型を持っています。しかし、適切なワイヤが接続されると、ノードは正しい値型に上書きされます。 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <code>StartDrive</code>入力にインパルスが到着するたびに<code>OnStartDrive</code>からインパルスを出力します。これは<code>StartDrive</code>に到着したインパルスの連鎖を継続させます。 | |
− | |||
− | + | <code>StopDrive</code>入力にインパルスが到達するたびに<code>OnStopDrive</code>からインパルスを出力します。これは、<code>StopDrive</code>に到着したインパルスの連鎖を継続させます。 | |
− | |||
− | == | + | |
+ | <code>OnHook</code> は、<code>DriveTarget</code> が <code>Source</code> 値でドライブされている時に、他のソース(例えば[[Write (LogiX node)/ja|Write]]ノードや [[ButtonValueSet (Component)|ButtonValueSet]]コンポーネント)が値を上書きしようとする(しかしできない)とインパルスを出力します。 | ||
+ | |||
+ | |||
+ | <code>IsDriving</code>出力は、<code>DriveTarget</code>を<code>Source</code>の値でドライブしている間はTrue、それ以外はFalseです。 | ||
+ | |||
+ | |||
+ | <code>HookedValue</code> は、<code>OnHook</code> からインパルスが出力されたときに、他のソースが <code>DriveTarget</code> に設定しようとした値を出力します。この値は、<code>OnHook</code>からインパルスが出力された瞬間のみ有効です。 | ||
+ | |||
+ | |||
+ | <code>StartDrive</code>にインパルスを入力すると、ターゲットが既に他のソースによって駆動されているかどうかに関わらず、<code>Source</code>値によってドライブされるようになることに注意してください、つまりターゲット値のドライブが上書きされます。 | ||
+ | |||
+ | == 例 == | ||
[[File:LogiX.Actions.Drive.Sample.jpg|900px|Drive example]] | [[File:LogiX.Actions.Drive.Sample.jpg|900px|Drive example]] | ||
− | == | + | == ノードメニュー == |
[[Category:LogiX{{#translation:}}|Drive]] | [[Category:LogiX{{#translation:}}|Drive]] | ||
− | [[Category:LogiX: Actions{{#translation:}}|Drive]] | + | [[Category:LogiX{{#translation:}}:Actions{{#translation:}}|Drive]] |
− | {{ | + | {{NodeMenu-Actions}} |
Latest revision as of 11:38, 20 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
に到着したインパルスの連鎖を継続させます。
OnHook
は、DriveTarget
が Source
値でドライブされている時に、他のソース(例えばWriteノードや ButtonValueSetコンポーネント)が値を上書きしようとする(しかしできない)とインパルスを出力します。
IsDriving
出力は、DriveTarget
をSource
の値でドライブしている間はTrue、それ以外はFalseです。
HookedValue
は、OnHook
からインパルスが出力されたときに、他のソースが DriveTarget
に設定しようとした値を出力します。この値は、OnHook
からインパルスが出力された瞬間のみ有効です。
StartDrive
にインパルスを入力すると、ターゲットが既に他のソースによって駆動されているかどうかに関わらず、Source
値によってドライブされるようになることに注意してください、つまりターゲット値のドライブが上書きされます。
例
ノードメニュー
Actions | ||||||
---|---|---|---|---|---|---|
Back | -- | ++ | Drive | Drive Playback | Tween | Write |
Write Latch | Write Ref | Write Ref Latch |