SMPL-to-FBX
SMPL-to-FBX copied to clipboard
Processing the FBX scene instead of saving it
Hello, I am trying to process the FBX scene, which was converted by your code from an SMPL model, instead of saving it. How can I process the animation that is stored in self.lScene? For example, the following code results in a frame count of zero, even though when it is saved to an ".fbx" file it does include the animation.
anim_stack = self.lScene.GetSrcObject(FbxCriteria.ObjectType(FbxAnimStack.ClassId), 0)
anim_range = anim_stack.GetLocalTimeSpan()
duration = anim_range.GetDuration()
frame_count = duration.GetFrameCount(True)
Thank you for the help.