Hello,
I’ve seen a post about a user remove scale curves out of blender’s FBX export. Can some information be provided as to how to do that or is there a script already available. I’m not sure if it as simple as changing the current export script and removing some code.
Thanks
2 Answers
2
Derive from AssetPostprocessor class. Use AnimationUtils to get AnimationCurves from AnimationClip. Remove scale curves from the list of AnimationCurves.
Hello and thanks for responding, for a test, I removed localscale curves and my animation looks odd. What I am trying to do is share an animation between 3 models with the same bones, but with different sizes.
I added the following code for a test:
clip.SetCurve(“Armature”, typeof(Transform), “m_LocalScale”, null);
clip.SetCurve(“Armature/hip”, typeof(Transform), “m_LocalScale”, null);
clip.SetCurve(“Armature/hip/abdomen”, typeof(Transform), “m_LocalScale”, null);
I see the scale difference, but the animation isn’t working as expected. Is there a way to share the animation, I am using the legacy animation system as I want to do this in code.
I originally thought I could change the size of the bones and the animation would work.
Thanks
thanks, I will also remove the position curves as well. Ther characters are all in a T Pose, just scaled differently to accomodate the differences in the meshes. I may need to try this with a simpler model and fewer bones.
– ddesmond