MattiasFredriksson / io_anim_c3d

Blender addon for importing .c3d files.
GNU General Public License v2.0
26 stars 5 forks source link

Problem with number of frames to import #6

Closed syKevinPeng closed 2 years ago

syKevinPeng commented 2 years ago

Hi, I installed the add-on successfully, but couldn't import all the frames. My c3d file contains up to 3270 frames but only the first 800 frames are loaded. Here is the file I used to import file. Could you please help me to fix it?

Best, Siyuan

MattiasFredriksson commented 2 years ago

Hey, will look into it tomorrow and see if I can find a solution.

BR Mattias

MattiasFredriksson commented 2 years ago

Looked into it and all frames are loaded correctly. The issue seems to be that by default the importer inserts the keyframes to match the current frame rate of the scene so that the animation playback runs in 'real time'. Since the recording is sampled at 100 Hz and the Blender frame rate by default is 24 the animation keyframes appears to be compressed on the animation timeline as roughly 4 keyframes are inserted per frame.

To import the animation with keyframes inserted in one frame increments make sure the 'Frame Rate' setting is disabled during import. Alternatively set the frame rate for the Blender scene to 100 Hz.

Hopefully it should solve the issue!

syKevinPeng commented 2 years ago

Really appreciate it! Will try it tonight

syKevinPeng commented 2 years ago

Confirmed. This resolved the problem. Thanks!