ProtoFlux:Sample Object Animation Track: Difference between revisions

From Resonite Wiki
Created page with "{{#Invoke:ProtoFlux|GenerateUI |Name=Sample Object Animation Track< T> |Category=Assets |Inputs= [ {"Name":"Animation", "Type":"Animation"}, {"Name":"TrackIndex", "Type":"int"}, {"Name":"Time", "Type":"float"} ] |Outputs= [ {"Name":"*", "Type":"Dummy"} ] |}} This node when provided an Animation Asset sample the given track index for a Reference Type Reference at the specified time. It is currently not possible to make use of this..."
 
Sudo-Generic -> Pseudo-generic
 
(3 intermediate revisions 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]]).  
Line 43: Line 43:
== Examples ==  
== Examples ==  


{{Stub}}
<gallery widths=480px heights=480px>
File:Protoflux_sample_object_animation_track.webp|Example of a Sample Object Animation Track<Slot> being used to change the parent of a slot
</gallery>


[[Category:ProtoFlux:Assets]]
[[Category:ProtoFlux:Assets]]

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