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

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

Moderators: Víctor Paredes, Belgarath, slowtiger

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

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

Post by Onionskin »

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 »

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 »

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 »

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 »

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: 1295
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

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

Post by Lukas »

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: 1295
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

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

Post by Lukas »

(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
Site Admin
Posts: 5646
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

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

Post by Víctor Paredes »

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!
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
Lukas
Posts: 1295
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

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

Post by Lukas »

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
Site Admin
Posts: 5646
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

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

Post by Víctor Paredes »

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)
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
Lukas
Posts: 1295
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

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

Post by Lukas »

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
Site Admin
Posts: 5646
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

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

Post by Víctor Paredes »

Now it's working perfectly! Thank you very much, Lukas. It is amazing to have this updated.
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
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

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

Post by Stan »

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?
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

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

Post by synthsin75 »

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: 1295
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

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

Post by Lukas »

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