Animate on 3s without mismatched keys on cycles?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
heyvern
Posts: 7089
Joined: Thu Sep 01, 2005 8:49 pm

Animate on 3s without mismatched keys on cycles?

Post by heyvern »

Tried and tried and can't quite figure it out. There's some sort of weirdness going on. very simple cycle animation. I have all the STEP KEYS on the same frames, and they cycle back to frame 2. All the keys cycle the same. Some are bone keys, some are layer translation/rotation keys. I am animating on 3s and have the markers set up and the timeline set up.

However, it works great on the first run before the cycle repeats. Once it repeats, it is mismatched by one frame. Sadly, it's very noticeable, so I have to fix it by hand or do something else. I tried different multiples of the cycle key, back to 4 or 3 instead of frame 2, still no luck. Every cycle key is mismatched, that little glitchy ka-chunk where one key fires off too soon.

I would LOVE to render straight from Moho, I hate the thought of having to fix this in post. Is there something I'm doing wrong? Should I simply skip cycles completely and paste in keys? I suppose rendering on 2's or 4s might be the ticket. 4s is too much, and 2 might as well just be 1. <sigh>
User avatar
synthsin75
Posts: 10488
Joined: Mon Jan 14, 2008 2:20 pm
Location: Oklahoma
Contact:

Re: Animate on 3s without mismatched keys on cycles?

Post by synthsin75 »

Any way you could strip down a file to a simple example?
User avatar
Greenlaw
Posts: 10984
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Animate on 3s without mismatched keys on cycles?

Post by Greenlaw »

I've run into issues like that, too. For me, it's too much trouble to keep the layers in sync, and I wish there were a global option to simply hold-and-drop frames when I render.

Here's what I do instead: render on 1's from Moho, load the image sequence into After Effects, and apply Posterize Time to it. Setting it to a frame rate of 12 effectively converts the footage to play on 2's. Setting it to 8 should make it play on 3's. (6 plays on 4's, etc.)

Image

If you use this method, be sure to set your Moho timeline to mark the intervals so your keyframes fall on the frames accurately. Otherwise, you could potentially lose key poses. On 2's, it's probably not a big deal, but on 3's or 4's, you'll want to be more careful.

Other than that, it's plug-and-play...I use this all the time, and rarely need to think about it much.
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | My DreamWorks Animation Reels & Others
User avatar
slowtiger
Posts: 6374
Joined: Thu Feb 16, 2006 9:53 am
Location: Berlin, Germany
Contact:

Re: Animate on 3s without mismatched keys on cycles?

Post by slowtiger »

Ran into that problem recently. Check your cycle key if it's set to 3's as well - that was the solution in my case.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15
Moho 14.1 Mac Mini M2 Pro OS 13.7.6
User avatar
hayasidist
Posts: 3998
Joined: Wed Feb 16, 2011 11:12 am
Location: Kent, England

Re: Animate on 3s without mismatched keys on cycles?

Post by hayasidist »

heyvern wrote: Tue Jun 02, 2026 12:19 pm Tried and tried and can't quite figure it out. There's some sort of weirdness going on. very simple cycle animation. I have all the STEP KEYS on the same frames, and they cycle back to frame 2. All the keys cycle the same. Some are bone keys, some are layer translation/rotation keys. I am animating on 3s and have the markers set up and the timeline set up.

However, it works great on the first run before the cycle repeats. Once it repeats, it is mismatched by one frame.
assuming I've understood the problem properly - I think I've cracked this.

all to do with the intervals and spacing on keys.

In short: the starting key needs to have the desired interval (here 3);

then to make the cycle work: key the last position NOT as a cycle key on interval 1; and then put the cycle key (also on interval 1) 2 frames further on to cycle back to the starting key


This example works as intended (and, as Slowtiger has noted) I'm sure there will be other combinations of setting intervals and key spacings, but I'm not going to try to find them all.... )

https://www.mediafire.com/file/vre9omp1 ... .moho/file
User avatar
heyvern
Posts: 7089
Joined: Thu Sep 01, 2005 8:49 pm

Re: Animate on 3s without mismatched keys on cycles?

Post by heyvern »

Thanks for the help, I tried all of the suggestions but they didn't work. I fiddled and fiddled with start and end of cycles changing where the keys landed. I am pretty sure it is the dagnab switch layer cycle causing the problem. The bone keys cycle fine but the dang switch layer is off by one frame.

GOOD NEWS! Found the solution. I asked... <sigh> I asked an artificial intelligence if it possibly had any answers. It said yes, there is a weird math rounding error in MOHO that causes cycles and intervals to not line up and skip frames. It said something about frame 0 being the start point, and it has influence on frames later, and that there is no frame 1... blah blah. The key result was ACTIONS ACTIONS. The AI says that in Moho, ACTIONS ARE IMMUNE TO THIS OFFSET BUG. It said actions don't LOOK AT FRAME 0. They just "do their thang" and get on with it. And true enough. I put the small repeating sequence into an action, added a reference to the mainline and set a cycle key at the END of the action reference, and BINGO BANGO IT WORKS!

I will say the AI did possibly reference the forums or someplace about Moho as a source, where someone had suggested this. I don't remember now what it was.


This didn't work read the next post
Last edited by heyvern on Wed Jun 03, 2026 10:12 am, edited 1 time in total.
User avatar
heyvern
Posts: 7089
Joined: Thu Sep 01, 2005 8:49 pm

Re: Animate on 3s without mismatched keys on cycles?

Post by heyvern »

Oh my GOD! So I fixed it.

Forget my last diatribe. Here's what I did.

The solution was totally counter intuitive. I don't know if this IS a bug or not. All I know is it made no sense but it worked.

In my animation I have a guy thinking he's looking up with his hand on his chin. His arm moves with STEP KEYS. His head turns right to left and left to right with a switch. Also, step not interpolation (also all images but shouldn't be an issue). So the keys are ALL STEP KEYS, no smooth motion. I have other animation going on as well that required setting all keys to 3s.
So far so good. Except for this dang guys head turn back and forth while thinking. His head switch no matter what I did was always one frame too later on the first repeat of the cycle.

Step keys.... <sigh> freaking step keys? They do NOT have to run on 3's they are freaking STEP KEYS. That's the issue. I set all the STEP KEYS BACK TO 1 on the interval and BOOM NOW IT WORKS!!!!!!

Oh my lord, my brain hurts. Spent way more time down this rabbit hole than I should have. I have a deadline so tight I ran out of notches on my belt.

p.s. The action trick did not work AT ALL. It was an illusion. Yes there was some minor improvement but the main culprit was the inverval set on step keys.
User avatar
synthsin75
Posts: 10488
Joined: Mon Jan 14, 2008 2:20 pm
Location: Oklahoma
Contact:

Re: Animate on 3s without mismatched keys on cycles?

Post by synthsin75 »

On threes, a cycle key shouldn't be on threes, because you usually want the cycle to restart on threes. So the cycle key needs to be one frame earlier.
And it seems to help if you can start your cycle on frame 3, 6, etc. instead of frame zero. This way you can cycle back to the very start of the cycle, instead of frame one from a cycle starting from frame zero.
At least this keeps perfect on threes timing for me, out to over a million frames.
https://gofile.io/d/9zSIJg
User avatar
slowtiger
Posts: 6374
Joined: Thu Feb 16, 2006 9:53 am
Location: Berlin, Germany
Contact:

Re: Animate on 3s without mismatched keys on cycles?

Post by slowtiger »

I never have a cycle start at #0, always on #1 or later.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15
Moho 14.1 Mac Mini M2 Pro OS 13.7.6
User avatar
Greenlaw
Posts: 10984
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Animate on 3s without mismatched keys on cycles?

Post by Greenlaw »

In general, I don't start anything on frame 0. I almost always use Freeze Visible on frame 1 to make sure of this.

By default (in Moho 14.x anyway,) Cycle loops back to the second frame of the animation. So, when frame 1 is keyframed, Cycle will loop back to frame 2 (unless you change it.) This assumes the animator is copying the first frame to the cycle keyframe at the end.
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | My DreamWorks Animation Reels & Others
User avatar
heyvern
Posts: 7089
Joined: Thu Sep 01, 2005 8:49 pm

Re: Animate on 3s without mismatched keys on cycles?

Post by heyvern »

Well, whatever the answer is, none of those solutions (I tried everything, even random starts and stops cycles keys interpolation etc) nothing worked correctly with my very simple file until I simply set my step keys to intervals of 1. There was a mix of step and linear interpolations BOTH WITH CYCLES. The non-step keys worked perfectly with a cycle no skipping no misalignment no early keys, it just worked, no issues. It was only the mix of step keys not aligned with switch keys Once set to interval of 1 it worked as expected. It had absolutely zero nada zip, nothing, not at all zero, to do with when or where or how the cycle started, on frame 1, 2, 3, 4, 6, 0. Everything lined up on the inerval grid etc. Tried them all nothing worked. It had nothing to do with that just step keys set to 3's was misaligned, which kind of makes sense.
Post Reply