Class: animation

The animation contains tracks which store position, rotation and scale changes over time. Such a tripple is called a prskey. You can use animations on bonesystems found in l3dmodels, or evaluate prskey states for given times manually. The current interpolation and updatetype is copied when assigned to a bonesystem. Therefore same animation can be used with different interpolation or update definitions.

Hierarchy

o-+ resource
  o-+ animation

Methods:

Method overview:


defaultpath ([string])
returns: ([string])
returns or sets the default resource path. Luxinia will search in those when resources are not found.
getrestype ()
returns: (int restype)
returns the resource type as int value, useful for resdata or reschunk functions
gettrack (animation,string trackname/ int number)
returns: ([trackid])
returns trackid of track within animation
length (animation)
returns: (int)
returns animation length in ms
load (string filename,[boolean splineinterpolation],[boolean rotationonly])
returns: ([animation])
loads a animation with given properties. default: spline=true, rotationonly=false
loaderprescale ([float x,y,z])
returns: ([float x,y,z])
prescales bone positions with a given vector. The factor remains active for all follwing 'animation.load' calls. Prescale will be reapplied if the anim is reloaded from disk again.
rotonlyupdate (animation,[boolean])
returns: (boolean)
sets or gets if animation calculates only the rotation keys.
splineinterpolation (animation,[boolean])
returns: (boolean)
sets or gets if animation uses spline interpolation for position between keys.
trackcount (animation)
returns: (int)
returns number of tracks within the animation

Inherited Methods:

From resource

condition, getresname, getresshortname, resuserstring