My Nudge Keys Toolset... Finally!!!!

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

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

User avatar
Onionskin
Posts: 225
Joined: Wed Mar 04, 2009 2:01 pm

Re: My Nudge Keys Toolset... Finally!!!!

Post by Onionskin » Mon Jul 14, 2014 10:57 am

Lukas wrote:
Onionskin wrote:
bubai wrote:Is it possible to share the corrected script for animestudio 10.1. PLEASE!!!

corrected script for animestudio 10.1
Beware, it's only updated so it works again. But the new 10.1 channels are not supported. (Everything will get nudged, but the new channels will stay behind)

Yes, true. I should be more specific, thanks Lukas.

On the link above is just updated "rt_key_tool_v1.2" script to work in the ASP 10.1.
No new channels are supported, like some animated layer effects, Threshold, Layer color...
User avatar
rrahh
Posts: 39
Joined: Mon Jan 28, 2013 3:56 pm
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by rrahh » Mon Jun 01, 2015 9:07 am

The script does not work in AS11, at least i can't get it to work.
Is there something i can do to change this?
GaryC
Posts: 53
Joined: Tue Feb 03, 2015 1:02 pm

Re: My Nudge Keys Toolset... Finally!!!!

Post by GaryC » Tue Jun 02, 2015 3:35 pm

I was looking over this and I found a simple fix to make the menu appear when you click the tool.
I added this in right before the DrawMe function:

Code: Select all

function RT_KeyTool:OnMouseDown(moho, mouseEvent)
	mouseEvent.view:DrawMe()
end
As far as I can tell, it works perfectly fine with just that added. If it has adverse effects for anyone, let me know so I can look into it!
User avatar
rrahh
Posts: 39
Joined: Mon Jan 28, 2013 3:56 pm
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by rrahh » Wed Jun 03, 2015 9:45 am

Yeah! It works!

Thanks a lot GaryC!
GaryC
Posts: 53
Joined: Tue Feb 03, 2015 1:02 pm

Re: My Nudge Keys Toolset... Finally!!!!

Post by GaryC » Wed Jun 03, 2015 1:54 pm

No problem, glad it worked. Though it turns out this was actually the same as this post, though I guess I didn't need the DrawMe() call.
User avatar
Lukas
Posts: 809
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by Lukas » Fri Mar 03, 2017 12:13 pm

Any chance this has been updated for Moho12?

I've been using it and it's still working, but for example bone-parenting-keys don't get nudged which is a shame.
User avatar
Lukas
Posts: 809
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by Lukas » Tue Apr 07, 2020 2:55 pm

(Hi Rudiger, hope you're doing well wherever you are!)

I took it upon myself to update Rudiger's tool to support all new channels up to Moho 12. As this tool is very valuable to me to this day.

I've also updated the icon set with to work with the color schemes and higher resolutions:
Image

The only thing I haven't figured out is support for channels with split dimensions. Any help with that would be appreciated.

Code: Select all

-- Version History:
--==================
-- TODO:
   -- Support channels with split dimensions!
-- Version 1.3 (by Lukas)
   -- Added all channels up to Moho 12
   -- New icons that support the new color schemes and higher resolutions
   -- Reformatted the toolbar layout to be more user friendly
   -- Added shortcuts to tool description
   -- Disable 'selected points/bones/shapes' buttons if 'points/bones/shapes' buttons are off.
   -- Hopefully I haven't destroyed any functionality...
Download link: rt_key_tool_v1.3.zip
User avatar
Víctor Paredes
Posts: 4946
Joined: Wed Jan 26, 2005 12:18 am
Location: Ireland/Chile
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by Víctor Paredes » Tue Apr 07, 2020 3:26 pm

Hi, Lukas. Thank you very much for this, it sounds amazing.
Sadly, I'm receiving these messages in the lua console and can't make the script to work:
Image
https://www.dropbox.com/s/0ihgd0efxu1yu ... 8.png?dl=0

Could you help me with it?
Thank you again!
Víctor Paredes
Former Moho Product Manager
Rigger and animator in Cartoon Saloon
My Youtube Channel - My webinars
User avatar
Lukas
Posts: 809
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by Lukas » Tue Apr 07, 2020 3:48 pm

Victor, I forgot to include the updated version of that lua file. I re-uploaded the .zip. Overwrite the files and it should work. :) Let me know if you get any errors.
User avatar
Víctor Paredes
Posts: 4946
Joined: Wed Jan 26, 2005 12:18 am
Location: Ireland/Chile
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by Víctor Paredes » Tue Apr 07, 2020 4:00 pm

Nice. Thanks, Lukas.
From a quick test, the script is working now, but I'm still seeing the first line in the lua console:
'attempt to index global "MohoMode" (a nill value)'
(I'm always paranoid I'm making a mistake here)
Víctor Paredes
Former Moho Product Manager
Rigger and animator in Cartoon Saloon
My Youtube Channel - My webinars
User avatar
Lukas
Posts: 809
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by Lukas » Tue Apr 07, 2020 4:15 pm

Víctor Paredes wrote:
Tue Apr 07, 2020 4:00 pm
Nice. Thanks, Lukas.
From a quick test, the script is working now, but I'm still seeing the first line in the lua console:
'attempt to index global "MohoMode" (a nill value)'
(I'm always paranoid I'm making a mistake here)
Oh oops, that's a hook into a system we use (Made a system where the user can set Moho's into Vanilla/Animator/Rigging/Experimental-Mode to display certain sets of tools). Should have edited that out. It's harmless though, don't worry about it.

Re-uploaded the .zip again. You only have to re-import the .lua file in the tool folder. Sorry for that :)
User avatar
Víctor Paredes
Posts: 4946
Joined: Wed Jan 26, 2005 12:18 am
Location: Ireland/Chile
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by Víctor Paredes » Tue Apr 07, 2020 4:21 pm

Now it's working perfectly! Thank you very much, Lukas. It is amazing to have this updated.
Víctor Paredes
Former Moho Product Manager
Rigger and animator in Cartoon Saloon
My Youtube Channel - My webinars
Stan
Posts: 131
Joined: Sun Apr 19, 2009 3:22 pm
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by Stan » Tue Apr 07, 2020 7:34 pm

Lukas wrote:
Tue Apr 07, 2020 2:55 pm
The only thing I haven't figured out is support for channels with split dimensions. Any help with that would be appreciated.
Maybe looking at the "Iterate through all the channels in the layer" code snippet will help?
________________________________________________________________________
http://mohoscripting.com/ - Unofficial Moho (Anime Studio) Lua Scripting Documentation
http://2danimator.ru/ - Russian Anime Studio Forum
User avatar
synthsin75
Posts: 7234
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by synthsin75 » Tue Apr 07, 2020 11:37 pm

Lukas wrote:
Tue Apr 07, 2020 2:55 pm
The only thing I haven't figured out is support for channels with split dimensions. Any help with that would be appreciated.
I handle those in my clean keys script: https://www.lostmarble.com/forum/viewto ... 12&t=31840
User avatar
Lukas
Posts: 809
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: My Nudge Keys Toolset... Finally!!!!

Post by Lukas » Wed Apr 08, 2020 8:22 am

synthsin75 wrote:
Tue Apr 07, 2020 11:37 pm
Lukas wrote:
Tue Apr 07, 2020 2:55 pm
The only thing I haven't figured out is support for channels with split dimensions. Any help with that would be appreciated.
I handle those in my clean keys script: https://www.lostmarble.com/forum/viewto ... 12&t=31840
Oh that's right! I'll check out your code and will try to implement it. :)
Post Reply