Clear Animation Not Cyclic Actions

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
DK
Posts: 2857
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Clear Animation Not Cyclic Actions

Post by DK »

Hi.
I am working on a large project atm where we re-use scenes and am wondering
if there was a way to clear all animated key frames but leave smart bone actions?
Every time I have used this option in the past it always cleared the Smart bone
actions along with timeline animation.
Thanks for any help.
D.K
Last edited by DK on Fri Apr 29, 2022 1:28 am, edited 1 time in total.
User avatar
synthsin75
Posts: 10030
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Clear Animation Not Actions

Post by synthsin75 »

Clear animation shouldn't touch actions. At least I've never seen it clear actions.

Just tested, and 13.5.4 doesn't seem to.
User avatar
DK
Posts: 2857
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: Clear Animation Not Actions

Post by DK »

Thanks Wes.
I must admit when I tried it last time it was on a very early version and I have
been wary to do so ever since. This will be very handy for the current project.

Cheers
D.K
User avatar
synthsin75
Posts: 10030
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Clear Animation Not Actions

Post by synthsin75 »

Always a good practice to do such drastic stuff on a copy of the file, just in case.
User avatar
DK
Posts: 2857
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: Clear Animation Not Actions

Post by DK »

Hi Wes.
Just went back into the project and took an other look. Here's the Actual problem, it wasn't an issue with
smart bone actions, the issue is with some particular files that have cyclic actions, in this case, water ripples.
It would be fantastic if there was a setting in Moho to leave cyclic actions alone when clearing animation data.

D.K
User avatar
synthsin75
Posts: 10030
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Clear Animation Not Cyclic Actions

Post by synthsin75 »

Can you just make those actions, and then re-add them to the mainline as actions?
That, or copy the keys before clearing and then pasting them back? Or clear a copy of the file and copy/paste the cycle keys back in.
User avatar
DK
Posts: 2857
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: Clear Animation Not Cyclic Actions

Post by DK »

Hi Wes.
Thanks for the work arounds. I might try copy pasting for now but it would be a nice option to be able to select the folders you don't want erased
before running clear animation. Like a smart clear option :)
Cheers
D.K
User avatar
synthsin75
Posts: 10030
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Clear Animation Not Cyclic Actions

Post by synthsin75 »

Could be scripted. Basically a clear animation for all but the selected layers kind of script.
If I find the time, I might look into it. No promises.
User avatar
DK
Posts: 2857
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: Clear Animation Not Cyclic Actions

Post by DK »

No probs Wes.
Cheers
D.K
User avatar
Greenlaw
Posts: 9461
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Clear Animation Not Cyclic Actions

Post by Greenlaw »

I haven't tried this but will Wes lock layer script prevent the keys from being deleted?

I'm guessing it's not going to protect it from Clear Animation but maybe worth trying.

Update: it does work! Of course, while this will preserve the cycle keyframes in the layer, it will also keep other keyframes in the layer. But this does make the task easier.

Update #2: Nope, nope. Sorry, my bad; the script does not prevent Clear Animation from a locked layer. See below.
Last edited by Greenlaw on Fri Apr 29, 2022 6:28 pm, edited 3 times in total.
User avatar
Greenlaw
Posts: 9461
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Clear Animation Not Cyclic Actions

Post by Greenlaw »

D'oh! I did this test wrong. I used Clear From Layer when I should have used Clear From Document. When I did this correctly, it also cleared the locked layer. That's what I originally expected to happen...and it did.

Oh well. Sorry for the false hope. :P
User avatar
DK
Posts: 2857
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: Clear Animation Not Cyclic Actions

Post by DK »

Thanks for looking into that Greenlaw! I started to see a glimmer of hope :)
The characters we are animating have walk cycles on their feet in a switch
layer but there are also other elements in the scenes based on cycles as well.

Cheers
D.K
Post Reply