SMPL-to-FBX icon indicating copy to clipboard operation
SMPL-to-FBX copied to clipboard

Processing the FBX scene instead of saving it

Open tomerfr opened this issue 2 years ago • 0 comments

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.

tomerfr avatar Aug 04 '22 09:08 tomerfr