Instance animation OpenCOLLADA extension

From COLLADA Public Wiki
Jump to: navigation, search
Extension information
This article is part of the COLLADA extensions directory
Adding to the extensions directory

Event

Animation markup events are to be applied to each individual clip exported into COLLADA format. Animation markup event is for gameplay programmers to be able to trigger certain events at user defined timing on an animation clip. Each clip can have multiple animation markup events.


Element Attributes supported Description
<event> Contain all events for the specified clip.
<timestamp> id, count a <float_array> of TIME value.
<markers> id, count a <Name_array> of MARKERS values.


Example

<animation_clip id="clip2" start="0" end="4.7666667">
     <instance_animation url="#clip2_c_torso_a_ue"/>
     <instance_animation url="#clip2_c_torso_b_ue"/>
     <instance_animation url="#clip2_c_torso_c_ue"/>
     <extra>
         <technique profile="OpenCOLLADAMaya">
             <event>
                <timestamps id="clip2-marker-input-array" count="4">0 1 2.26 3.56 </timestamps>
                <markers id="clip2-marker-name-array" count="4">Foot_L Foot_R Foot_L Hand_L </markers>
             </event>
         </technique>
     </extra>
</animation_clip>


Maya

Script to have extra attribute with 2 fields (float=timing and string=markerName)

addAttr -longName Markers -numberOfChildren 2 -attributeType compound -multi; addAttr -longName Time -at "float" -parent Markers; addAttr -longName ID -dt "string" -parent Markers;