My scene:
1, Objcets: a rock + a dog
2, Animations: rock-skin + dog-skin + dog-pose
I want to play all animations at the same time, my codes:
//AnimatedGroup group
group.animatePose(index, mAnimationIndex); //dog-pose
group.animateSkin(index, mAnimationIndex); //dog-skin
group.animateSkin(index, mAnimationIndex + 1); //rock-skin
group.applyAnimation();
When it run, just play rock-skin and dog-skin, dog-pose didn't be played. But if i changed my code like this(change order):
group.animateSkin(index, mAnimationIndex); //dog-skin
group.animatePose(index, mAnimationIndex); //dong-pose
group.animateSkin(index, mAnimationIndex + 1); //rock-skin
group.applyAnimation();
Rock-skin 、dog-skin、dog-pose are all played.
And if:
group.animateSkin(index, mAnimationIndex); //dog-skin
group.animateSkin(index, mAnimationIndex + 1); //rock-skin
group.animatePose(index, mAnimationIndex); //dog-pose
group.applyAnimation();
Dog-pose was played, and rock-skin seems to be played too, but rock-skin was rather different from what seen in maya.
Any advices?