aver shoot keyframe

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

aver shoot keyframe

Post by davoodice2 »

hi friends.
is there any script for over shoot keys ?
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
synthsin75
Posts: 9975
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: aver shoot keyframe

Post by synthsin75 »

Elastic interpolation.
User avatar
Víctor Paredes
Site Admin
Posts: 5665
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: aver shoot keyframe

Post by Víctor Paredes »

I made a tutorial about Elastic interpolation some time ago, maybe it can be useful for you :)
Image Image Image Image
Moho Product Manager

www.mohoanimation.com
Rigged animation supervisor in My father's dragon - Lead Moho artist in Wolfwalkers - Cartoon Saloon - My personal Youtube Channel
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: aver shoot keyframe

Post by davoodice2 »

Elastic interpolation.
I made a tutorial about Elastic interpolation some time ago, maybe it can be useful for you :)
THANKS YOU.
but its not good for character animation with complicated keys. I want make keys a little bit overshooted according to next frame.
Image
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
Víctor Paredes
Site Admin
Posts: 5665
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: aver shoot keyframe

Post by Víctor Paredes »

Image
It's not exactly what you are showing, but you can adjust the values to get close.
Image Image Image Image
Moho Product Manager

www.mohoanimation.com
Rigged animation supervisor in My father's dragon - Lead Moho artist in Wolfwalkers - Cartoon Saloon - My personal Youtube Channel
User avatar
SimplSam
Posts: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: aver shoot keyframe

Post by SimplSam »

An alternative is to use Bezier/s.
Moho 14.1 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.1 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
User avatar
Víctor Paredes
Site Admin
Posts: 5665
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: aver shoot keyframe

Post by Víctor Paredes »

SimplSam wrote: Tue Aug 10, 2021 3:07 pm An alternative is to use Bezier/s.
Yes, that's an option too. The only issue I see there is it would require to setup every independent keyframe in the graph mode (or at least many keys).
That's why I was thinking about the elastic interpolation. Once you are happy with the numbers there, you could apply them to all the keyframes at once.
Also, you can use the 'Copy previous key' option in the timeline to be sure every new key follows the same values than the ones already created.
Image Image Image Image
Moho Product Manager

www.mohoanimation.com
Rigged animation supervisor in My father's dragon - Lead Moho artist in Wolfwalkers - Cartoon Saloon - My personal Youtube Channel
User avatar
synthsin75
Posts: 9975
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: aver shoot keyframe

Post by synthsin75 »

Why not just keyframe the overshoot, as in your picture?
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: aver shoot keyframe

Post by davoodice2 »

synthsin75 wrote: Tue Aug 10, 2021 4:16 pm Why not just keyframe the overshoot, as in your picture?
when I work in maya I use a script called tween machine.
Image

What it does is take the values of all the selected joints in the previous keyframe and the next keyframe and calculate the over shoot based on the requested percentage and sets keyframes.
and this is simple version.
Image

now I convert keys to bezier and adjust them by hand.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
synthsin75
Posts: 9975
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: aver shoot keyframe

Post by synthsin75 »

davoodice2 wrote: Tue Aug 10, 2021 7:04 pm
synthsin75 wrote: Tue Aug 10, 2021 4:16 pm Why not just keyframe the overshoot, as in your picture?
when I work in maya I use a script called tween machine.

What it does is take the values of all the selected joints in the previous keyframe and the next keyframe and calculate the over shoot based on the requested percentage and sets keyframes.
and this is simple version.

now I convert keys to bezier and adjust them by hand.
Well get cracking on Moho scripting then. Nothing stopping you from doing this yourself.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: aver shoot keyframe

Post by davoodice2 »

synthsin75 wrote: Tue Aug 10, 2021 10:58 pm
davoodice2 wrote: Tue Aug 10, 2021 7:04 pm
synthsin75 wrote: Tue Aug 10, 2021 4:16 pm Why not just keyframe the overshoot, as in your picture?
when I work in maya I use a script called tween machine.

What it does is take the values of all the selected joints in the previous keyframe and the next keyframe and calculate the over shoot based on the requested percentage and sets keyframes.
and this is simple version.

now I convert keys to bezier and adjust them by hand.
Well get cracking on Moho scripting then. Nothing stopping you from doing this yourself.
my question was not complicated.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
synthsin75
Posts: 9975
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: aver shoot keyframe

Post by synthsin75 »

davoodice2 wrote: Wed Aug 11, 2021 1:29 pm my question was not complicated.
And the answer was simple too. Either elastic interpolation, keyframe the overshoot manually, or write your own tween machine for Moho (which is what people did for Maya).
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: aver shoot keyframe

Post by davoodice2 »

synthsin75 wrote: Wed Aug 11, 2021 7:20 pm
davoodice2 wrote: Wed Aug 11, 2021 1:29 pm my question was not complicated.
And the answer was simple too. Either elastic interpolation, keyframe the overshoot manually, or write your own tween machine for Moho (which is what people did for Maya).
I decided completely ignore you from now.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
synthsin75
Posts: 9975
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: aver shoot keyframe

Post by synthsin75 »

davoodice2 wrote: Wed Aug 11, 2021 7:29 pm I decided completely ignore you from now.
Good.
Post Reply