ProtoFlux:Sample Object Animation Track: Difference between revisions

From Resonite Wiki
m fix formatting
Sudo-Generic -> Pseudo-generic
 
(One intermediate revision by one other user not shown)
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 ==
Line 35: Line 35:
== Outputs ==
== Outputs ==


=== * (Dummy Sudo-Generic) ===
=== * (Dummy Pseudo-generic) ===


This gives the [[:Category:Type|Reference Type]] for the track index given to TrackIndex ([[Types:Int|int]]) at the time given to Time ([[Types:Float|Float]]).  
This gives the [[:Category:Type|Reference Type]] for the track index given to TrackIndex ([[Types:Int|int]]) at the time given to Time ([[Types:Float|Float]]).  

Latest revision as of 18:48, 6 June 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 Pseudo-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