The <animation> node specifies a number of things about the joint it is affecting, but I can’t see where it has any info about which joint it is, or which bone that joint attaches to. Is there a quick way to get this information?
We have the following code in the .dae. I can’t imagine I would need to try to parse the word “joint2” out of one of these IDs.
<library_animations>
<animation id="joint2.matrix">
<source id="joint2.matrix_joint2_transform-input">
<float_array id="joint2.matrix_joint2_transform-input-array" count="61">0 0.033333 0.066666 0.099999 and so on...</float_array>
<technique_common>
<accessor source="#joint2.matrix_joint2_transform-input-array" count="61" stride="1">
<param name="TIME" type="float"/>
</accessor>
</technique_common>
<technique profile="MAYA">
<pre_infinity>CONSTANT</pre_infinity>
<post_infinity>CONSTANT</post_infinity>
</technique>
</source>
<source id="joint2.matrix_joint2_transform-output">
<float_array id="joint2.matrix_joint2_transform-output-array" count="976">1 0 0 2.1978 and so on...</float_array>
<technique_common>
<accessor source="#joint2.matrix_joint2_transform-output-array" count="61" stride="16">
<param name="TRANSFORM" type="float4x4"/>
</accessor>
</technique_common>
</source>
<source id="joint2.matrix_joint2_transform-interpolations">
<Name_array id="joint2.matrix_joint2_transform-interpolations-array" count="61">LINEAR LINEAR LINEAR and so on...</Name_array>
<technique_common>
<accessor source="#joint2.matrix_joint2_transform-interpolations-array" count="61" stride="1">
<param name="INTERPOLATION" type="Name"/>
</accessor>
</technique_common>
</source>
<sampler id="joint2.matrix_joint2_transform-sampler">
<input semantic="INPUT" source="#joint2.matrix_joint2_transform-input"/>
<input semantic="OUTPUT" source="#joint2.matrix_joint2_transform-output"/>
<input semantic="INTERPOLATION" source="#joint2.matrix_joint2_transform-interpolations"/>
</sampler>
<channel source="#joint2.matrix_joint2_transform-sampler" target="joint2/transform"/>
</animation>
</library_animations>