Posted: Wed Sep 25, 2013 1:31 am Post subject:
AnimationMode question
Subject description: Solved!
The 'AnimationMode' attribute that is a child of the 'Animation' element has a number of strings that give animation playback instructions such has 'LOOP', 'MANUAL' and 'ONCE'.
The ScriptedModelDraw.xsd has the info: <xs:attribute name="AnimationMode" type="xs:string" />. I want to know where those command strings are located so I can see the full list of them, does anyone know where they are? Last edited by Madin on Wed Sep 25, 2013 9:39 pm; edited 1 time in total QUICK_EDIT
Nowhere. However, here is the definition from RA3 and I think the same modes can be used in TW, too.
Code:
<!-- Animation mode describing automatic advancement of animation position -->
<xs:simpleType name="AnimationMode"
xas:useEnumPrefix="false"
xas:enumItemPrefix="ANIM_MODE_"
xas:targetNamespace="Sage::Render">
<xs:restriction base="xs:string">
<xs:enumeration value="MANUAL" /> <!-- Don't update animation automatically -->
<xs:enumeration value="LOOP" /> <!-- Play animation to end and start over -->
<xs:enumeration value="ONCE" /> <!-- Play animation once to the end -->
<xs:enumeration value="LOOP_BACKWARDS" /> <!-- Play animation backwards to start and repeat from the end -->
<xs:enumeration value="ONCE_BACKWARDS" /> <!-- Play animation once backwards to start -->
<xs:enumeration value="LOOP_PINGPONG" /> <!-- Play forwards to the end and reverse to the start -->
<xs:enumeration value="PLAY_TO_FRAME" /> <!-- Play to a given frame from the current frame -->
<xs:enumeration value="MATCH_UNPACKING" /> <!-- Frames are specifically set based on a buildings % of completion -->
</xs:restriction>
</xs:simpleType>
Nowhere. However, here is the definition from RA3 and I think the same modes can be used in TW, too.
Code:
<!-- Animation mode describing automatic advancement of animation position -->
<xs:simpleType name="AnimationMode"
xas:useEnumPrefix="false"
xas:enumItemPrefix="ANIM_MODE_"
xas:targetNamespace="Sage::Render">
<xs:restriction base="xs:string">
<xs:enumeration value="MANUAL" /> <!-- Don't update animation automatically -->
<xs:enumeration value="LOOP" /> <!-- Play animation to end and start over -->
<xs:enumeration value="ONCE" /> <!-- Play animation once to the end -->
<xs:enumeration value="LOOP_BACKWARDS" /> <!-- Play animation backwards to start and repeat from the end -->
<xs:enumeration value="ONCE_BACKWARDS" /> <!-- Play animation once backwards to start -->
<xs:enumeration value="LOOP_PINGPONG" /> <!-- Play forwards to the end and reverse to the start -->
<xs:enumeration value="PLAY_TO_FRAME" /> <!-- Play to a given frame from the current frame -->
<xs:enumeration value="MATCH_UNPACKING" /> <!-- Frames are specifically set based on a buildings % of completion -->
</xs:restriction>
</xs:simpleType>
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum