Breakroom is now Sinewave Campus. Book a meeting

SAnimationState

ClientTypes
On this classEnabled
  1. Properties
  2. Enabled
  3. Length
  4. Name
  5. NormalizedSpeed
  6. NormalizedTime
  7. Speed
  8. Time
  9. Weight
Members 8
PropertyEnabledIs this Animation State enabled?
PropertyLengthReturns the length of current animation.
PropertyNameReturns the name of current animation.
PropertyNormalizedSpeedReturns the normalized speed of current animation.
PropertyNormalizedTimeReturns the normalized time of current animation.
PropertySpeedThe playback speed of the animation. 1.0 is normal playback speed.
PropertyTimeReturns the Time of current animation.
PropertyWeightReturns the Weight of current animation.

Properties​

Enabled​

bool Enabled {get; set; }

Is this Animation State enabled?

Example

Lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
SAnimationState.Enabled = false

LengthRead only​

float Length {get; }

Returns the length of current animation.

Example

Lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
length = SAnimationState.Length

NameRead only​

string Name {get; }

Returns the name of current animation.

Example

Lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
name = SAnimationState.Name

NormalizedSpeed​

float NormalizedSpeed {get; set; }

Returns the normalized speed of current animation.

Example

Lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
normalizedSpeed = SAnimationState.NormalizedSpeed

NormalizedTime​

float NormalizedTime {get; set; }

Returns the normalized time of current animation.

Example

Lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
normalizedTime = SAnimationState.NormalizedTime

Speed​

float Speed {get; set; }

The playback speed of the animation. 1.0 is normal playback speed.

Example

Lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
SAnimationState.Speed = 0.5

Time​

float Time {get; set; }

Returns the Time of current animation.

Example

Lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
SAnimationState.Time = 0.5

Weight​

float Weight {get; set; }

Returns the Weight of current animation.

Example

Lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
SAnimationState.Weight = 0.5