Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

KeyframeAnimation element

  • Last UpdatedDec 06, 2023
  • 1 minute read

When the exported object features one or more keyframe animations, these are included into the .mwx structure right after the <Mesh> element, as in the example below.

Code example

This is a code example of included keyframes.

[...]

</Mesh>

<KeyframeAnimation name="file_name|itemName" version="1">

<keysFile value="file_name\file_name_itemName.anmk"/>

</KeyframeAnimation>

[...]

As explained with the geometry, the Prefer XML Text will include the animation data directly inside the .mwx instead of linking and referring to an .anmk file

Code example

This is a code example in which the exported animation modifies only the mesh scale property.

[...]

</Mesh>

<KeyframeAnimation name="file_name|itemName" version="1">

<defaultPositionKey time="0.0" value="0.0 -0.0 0.0"/>

<defaultRotationKey time="0.0" value="-0.0 -0.0 -0.0 1.0"/>

<defaultScaleKey time="0.0" value="0.243665 2.516983 0.274933"/>

<scaleKeys length="0.1">

<key time="0.0" value="0.243665 2.516983 0.274933"/>

<key time="0.033333" value="0.245137 2.513721 0.276214"/>

<key time="0.066667" value="0.247177 2.5092 0.27799"/>

<key time="0.1" value="0.249774 2.503445 0.280251"/>

</scaleKeys>

</KeyframeAnimation>

[...]

In This Topic
TitleResults for “How to create a CRG?”Also Available in