added standardization |
m fix types |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Name":"StartDrive", "Type":" | {"Name":"StartDrive", "Type":"Call"}, | ||
{"Name":"StopDrive", "Type":" | {"Name":"StopDrive", "Type":"Call"}, | ||
{"Name":"ForceResync", "Type":" | {"Name":"ForceResync", "Type":"Call"}, | ||
{"Name":"Target", "Type":"SyncPlayback"}, | {"Name":"Target", "Type":"SyncPlayback"}, | ||
{"Name":"NormalizedPosition", "Type":"float"}, | {"Name":"NormalizedPosition", "Type":"float"}, | ||
Line 78: | Line 78: | ||
== Examples == | == Examples == | ||
<gallery | <gallery widths=480px heights=480px> | ||
File:ProtoFlux_example_driving_playable.webp|An example of a drive playback telling an animation to only play the first 3 seconds using world time and math nodes. | File:ProtoFlux_example_driving_playable.webp|An example of a drive playback telling an animation to only play the first 3 seconds using world time and math nodes. | ||
</gallery> | </gallery> |
Latest revision as of 21:15, 9 February 2024
Playback Drive is a node that will take a SyncPlayback and allow you to start or stop driving it to a set of provided playback settings and values. The driving of the SyncPlayback is non networked.
Inputs
StartDrive (Call)
Starts driving the Target (SyncPlayback) in a non networked fashion, which essentially makes the provided Target (SyncPlayback) no longer synced until StopDrive (Call) is called.
StopDrive (Call)
Stop driving the Target (SyncPlayback), making it networked again.
ForceResync (Call)
When this is impulsed, The node will try to sync the current Target (SyncPlayback) position that the local user sees with everyone else in a session. (See Impulses for what a local user on an Impulse means) If this is called and NormalizedPosition (float) does not have an input, it will do nothing.
Target (SyncPlayback)
The Network Synced Playable that will become un-networked via being driven by this node.
NormalizedPosition (float)
The position to drive Target (SyncPlayback) to from 0 to 1.
Maximum Position Error (float)
The the max amount the position on Target (SyncPlayback) can vary from NormalizedPosition (float).
Speed (float)
The a multiplier for the playback speed of Target (SyncPlayback).
Play (bool)
If the Target (SyncPlayback) should be playing. (default true if normalized position is given and moving)
Loop (bool)
If the Target (SyncPlayback) should loop. May clash when providing NormalizedPosition (float)
Outputs
OnStartDrive (Continuation)
When StartDrive (Call) is impulsed and it can drive Target (SyncPlayback)
OnStopDrive (Continuation)
When StopDrive (Call) is impulsed and this node was driving Target (SyncPlayback)
OnResync (Continuation)
sends an impulse when ForceResync (Call) succeeds.
IsDriving (bool)
If the Target (SyncPlayback) is currently driving. (Aka StartDrive (Call) was called but not StopDrive (Call) yet.)
Examples
-
An example of a drive playback telling an animation to only play the first 3 seconds using world time and math nodes.