We've been exporting .dae files with animations in Maya and referencing animation nodes via their animation ID (from library_animations) in visual_scenes. We would get the animation matrices in visual_scenes by taking values from tags "rotateX", "rotateY", and "rotateZ". An animation ID would look something like <animation id="Part1.rotateX">.
Code :domChannelRef channel = animRef->getChannel_array()[k]; xsToken channelName = channel->getTarget (); char parseStr, *jointName, *channelType; strcpy (parseStr, channelName); char *subString = (char*)parseStr; jointName = strtok (subString, "/"); channelType = strtok (NULL, "\n");
When exporting in max, though, the animation ID would go like <animation id="INNER_RING-node-rx"> and tags as "rotX", "rotY", "rotZ", etc.
The source ID (sID) seems to be have more information and could possibly be used for both cases, would this be correct? Is there any code I could possibly take a look at to go about relating the animations this (or through a better) way?
Any help/references would be greatly appreciated, once again.