ProtoFlux:Sample Object Animation Track: Difference between revisions

From Resonite Wiki
m fix formatting
updated with an actual use
Line 17: Line 17:
This node when provided an [[Type:Animation|Animation Asset]] sample the given track index for a [[:Category:Type|Reference Type]] Reference at the specified time.
This node when provided an [[Type:Animation|Animation Asset]] sample the given track index for a [[:Category:Type|Reference Type]] Reference at the specified time.


It is currently not possible to make use of this node due to [[AnimJ]] not supporting objects. {{Citation needed}} TODO: Someone test this.
It is currently only possible to make use of this node to read [[Type:String|Strings]] from [[AnimJ]]s. This can be useful to store large amounts or string data, like translations or subtitles driven via animations.


== Inputs ==
== Inputs ==

Revision as of 06:09, 9 February 2024

Sample Object Animation Track< T>
Animation
*
TrackIndex
Time
Assets


This node when provided an Animation Asset sample the given track index for a Reference Type Reference at the specified time.

It is currently only possible to make use of this node to read Strings from AnimJs. This can be useful to store large amounts or string data, like translations or subtitles driven via animations.

Inputs

Animation (Animation Asset)

The Animation Asset provided by an IAssetProvider<Animation>.

TrackIndex (int)

The track index of the given Animation (Animation Asset) to sample from

Time (Float)

The time in seconds at which to sample the animation.

Outputs

* (Dummy Sudo-Generic)

This gives the Reference Type for the track index given to TrackIndex (int) at the time given to Time (Float).

This does not have interpolation[Citation needed]

Examples