# Animation XML Properties This section is dedicated to the XML elements related to model animation. These elements can be used as part of the `[model].xml` file, or as a separate `animations.xml` file. If any animations are being defined for a single model then you would normally include these elements within the actual `[model].xml`, but if you wish to share animations across multiple models, then you would set up an `animations.xml` file, formatted as follows: ``` xml ``` This file would be placed in the same location as the `sim.cfg` file or `aircraft.cfg` that will be using the animations, and there should be an "animations" folder in the same directory, for example: ![Files And Folders Required For Shared Model Animations](images/5_Content_Config/Models/model_anim_folders.png) Note that the elements listed here can also be used within the `` element of the `[model].xml` to define animations as part of the [Model Behaviors](modelbehaviors/model-behaviors/), or as part of a `` definition.     ### <Animation> This element is the root entry of any behavior. It defines the name the of the model animation and the behavior it should be linked to. It can contain the `` sub-element and has the following parameters:  
AttributeDescriptionTypeRequired
nameA unique name for the new animation. It should not contain any spaces or punctuation, but can contain underscores and numeric digits.StringYes
guidThe unique GUID for the animation. This is the reference the simulation will use to identify the animation, and must be in the format "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx}", all lower case, e.g: "{12f06ee8-11ce-4e7b-a715-a9c5deb5352f}".StringYes
lengthThis is used only for "Sim" animations, and exists for backwards compatibility. It is not necessary to specify this if you specify the <AnimLength> element of a <PartInfo> animation.FloatNo
typeDefines the type of animation. Standard animations are simpler to define and not typically driven by aircraft controls. Sim animations are usually linked to Simulation Variables, see the section on <PartInfo> below for more information.

Enum:

  1. "Standard"
  2. "Sim"
Yes
typeParam

This is used to set the animation play property for the different animation types. You can uses either or both of the available options, eg:

typeParam = "Autoplay"
typeParam = "Autoplay,Random"

String :

  1. "AutoPlay" - the animation will run when the object is rendered
  2. "Random" - the animation will be started at a random point along its timeline
  3. "FrameRate" - The FrameRate reference value, where the default value is 18fps. This is essentially a scalar of 1, so if you set the FrameRate to 36fps the animation would be played at double the speed, or at 9fps to play at half speed. Note that if you use this type, then you must also use the length attribute, for example:

    <Animation length="100" name="CubeAction" guid="16DEA026-A609-42EA-B820-211C951CA8CB" type="Standard" typeParam="AutoPlay,FrameRate=36" />
No
    ### <NodeAnimation> This element is currently used for advanced "wingflex" bone animation. It animates the positions of several nodes in three dimensions. For this to have the desired effect, the nodes should be the joints of a skeleton that skins the wings and the nodes are hard-coded to a limit of 12 with the following order:   {{< table-wrapper >}} | Order | Node Position | |:-----:|-----------------------------------------------------------| | 0 | the left wing bone closest to the center | | 1 | in between | | 2 | in between | | 3 | the left wing bone furthest from the center | | 4 | the right wing bone closest to the center | | 5 | in between | | 6 | in between | | 7 | the right wing bone furthest from the center | | 8 | the left wing engine pivot node closest to the center | | 9 | the left wing engine pivot node furthest from the center | | 10 | the right wing engine pivot node closest to the center | | 11 | the right wing engine pivot node furthest from the center | {{< /table-wrapper >}}   The element has the sub-element `` and takes the following attribute:  
AttributeDescriptionTypeRequired
typeThe type of node animation to use (currently only 1 type is available)

Enum:

"WingFlex"

Yes
    #### <Node /> This self-closing element is a sub-element of `` and is used to define the 12 different wingflex nodes on the model for the aircraft (one `` element per wingflex node).     ### <AnimationEvent> This element describes a moment in time when the animation reaches a certain point. Note that it is sensitive to the direction in which the animation changes, and by default an event only fires when an animation value *increases*. It can have `