# 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.

## Hierarchy

    o-+ resource
      o-+ animation

## Interfaces:

- hashid

## Methods:

### Method overview:

- defaultpath
- getrestype
- gettrack
- length
- load
- splineinterpolation
- trackcount

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)
  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
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