Animation looping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey guys! I'm trying to do some looping animations. For the sake of simplicity, say I'm trying to move a cube on the X axis from 0 to 5 and have that loop every 20 frames. On frame 0 and on frame 20, the X value would be at 0, but at frame 19 the frame would be at 5. This seems fine in Maya since playback only hits the frames on the whole number, but when I export this animation via FBX to Unity for example, the animation curve is sampled between 19 and 20 and it looks like the cube flies back to 0 from 5 really fast instead of it being a "pop" back to its original starting value.
1) If I clamp the key frame 19 and play the animation back slowly, the animation seems to hiccup at the end of every loop since the value stays at 5 the entirety of frame 19.
2) If I clamp the key at frame 19.995 (which seems to be the smallest fractional value I can put a key frame at closes to 20) then it seems much more smooth, but the animation still hiccups every once in a while.
3) I don't think repeating the animation curve before/after infinity will work because I need other animation on the X-axis at later points in the timeline.
I feel like I'm missing something simple here. What is the way to go about creating a proper loop animation for a section of the timeline?