Could this be automated?

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
slowtiger
Posts: 6081
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Could this be automated?

Post by slowtiger »

I very much enjoy working with Moho because I can improvise a lot. Doing complex camera moves in multiplane setup is fun ... until I have to correct the position of an element. Here I am, in frame 295, adjusting some building's position - but it must stand there from the beginning on. So it's copy key, go to frame 0, paste, and delete the later key. Since I do this quite a lot: is there a way to get a button for this workflow? Maybe this should become a feature request?
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 Plus OS 13.5
User avatar
Lukas
Posts: 1297
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: Could this be automated?

Post by Lukas »

I don't have the files on me right now, but the transform layer tool can easily be modded to set the key on frame 0 instead of on the current frame when releasing the mouse button (or pen).
User avatar
DK
Posts: 2854
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: Could this be automated?

Post by DK »

This is something I also do and an option/button would be extremely useful!
Cheers
D.K
User avatar
hayasidist
Posts: 3528
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Could this be automated?

Post by hayasidist »

is the animation / "copy current frame" function too clunky? Accepted that it would be good to update it so that selected channel(s) are "pre-selected", and with a delete option - but it avoids the to-and-fro in the timeline.
User avatar
slowtiger
Posts: 6081
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Could this be automated?

Post by slowtiger »

I'd really appreciate it if this were a button in the timeline (and a keyboard shortcut).
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 Plus OS 13.5
User avatar
Víctor Paredes
Site Admin
Posts: 5664
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: Could this be automated?

Post by Víctor Paredes »

For now, you can use the Design Mode shortcut (Ctrl+Shift+D, if I remember well). If you are at frame 295, you press the shortcut and it will take you to frame zero. Then, if you press it again, it will take you back to frame 295.
So the workflow would be:

- At frame 255, move the building
- Cut the keyframe you just created
- Press the shortcut to go to frame zero
- Paste the keyframe
- Press the shortcut to go back to frame 295


I know it's not the ideal solution, but I hope it helps :)
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
slowtiger
Posts: 6081
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Could this be automated?

Post by slowtiger »

That's only marginally faster than what I do now:

select key
copy key
go to 0 with shift+leftarrow
paste key
press delete
goo back to frame 295 with scrolling.

Ideally it should just do everything after select with a press of the button, without leaving timeline position.
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 Plus OS 13.5
User avatar
Onionskin
Posts: 253
Joined: Wed Mar 04, 2009 2:01 pm

Re: Could this be automated?

Post by Onionskin »

I think that this Rylander button script will be helpful for the job like you describe
http://rylanderanimation.se/2008/10/01/ ... o-frame-0/
User avatar
ITAK
Posts: 15
Joined: Sun Mar 18, 2012 7:18 pm
Location: Russia
Contact:

Re: Could this be automated?

Post by ITAK »


Is it okay?
User avatar
slowtiger
Posts: 6081
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Could this be automated?

Post by slowtiger »

Thx, will try 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 Plus OS 13.5
User avatar
SimplSam
Posts: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Could this be automated?

Post by SimplSam »

ITAK wrote: Sat Jan 02, 2021 6:37 pm Is it okay?
I was about to direct @slowtiger to the 'AE_KeyTools:PasteSelectedKeys' function (for base/similar script logic) in http://mohoscripts.com/script/ae_keytools, but I think the Mynd 'Set To Frame 0' tool does most of what's needed. Although (expanding on its use) I would have liked to see +options to only Delete the selected keyframe (or none at all) i.e. Delete: None, Selected, Before, All.
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
Post Reply