FBX export - only 6 frames of animation exported instead of 60

FBX export - only 6 frames of animation exported instead of 60

Anonymous
Not applicable
795 Views
1 Reply
Message 1 of 2

FBX export - only 6 frames of animation exported instead of 60

Anonymous
Not applicable

I've got my FBX exporting from Mel basically working - except that for animation, it's only exporting the first 6 frames.  When I import into unreal, there are 6 frames of movement, and then for the rest of the 60 frame duration there is no movement.  It does recognize that the animation is 60 frames long, but there's just no movement information after the first 6 frames.  I exported into ASCII and looked at the file, and it is true that there is only timing data for 6 frames.  Whereas if I export from the UI, I get all 60 frames.

 

Anyone know what the problem could be or how to fix it?

Thanks!

 

EDIT: okay, I sort of figured out why this is happening.  I looked at the FBXProperties in mel before I export, and the 'BakeFrameEnd ' attribute is set to 5.  So it's only exporting 6 frames.

 

But in that case, why, when I have the same preset file chosen in the UI, does BakeFrameEnd show as 60?  Does the UI automatically override that setting with the end frame?  How can I do the same thing in Mel?

 

 

 

0 Likes
Accepted solutions (1)
796 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

OK got this fixed:

 

float $fAnimationEnd = `playbackOptions -q -animationEndTime`;
FBXProperty Export|IncludeGrp|Animation|BakeComplexAnimation|BakeFrameEnd -v $fAnimationEnd;
0 Likes