Is it possible to change the Shotcut for Peak and smooth?

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
velu
Posts: 47
Joined: Sun Jun 22, 2008 10:52 am
Location: India - Chennai
Contact:

Is it possible to change the Shotcut for Peak and smooth?

Post by velu »

In previous version of AS Shortcut for Peak - 'P' and for Smooth - 'M'. But in AS PRO 6 Ctrl+P and Ctrl+M. Possible to change the shortcut as previous version? Because holding Ctrl key is difficult to me for the process of Smooth and Peak.
I love Moho
User avatar
Barry Baker
Posts: 342
Joined: Fri Aug 27, 2004 6:58 am
Location: UK
Contact:

Post by Barry Baker »

Look at this discussion:

viewtopic.php?t=13515&highlight=smooth

I had the very same issue with v6. You will need the peak and smooth tools, as well as their icons, from v5.6 to be able to change it back (lm_smooth.lua and lm_peak.lua). Put them in the scripts\tool folder, then edit each lua file to take out the word LOCALIZE, which is incompatible with v6.

For example,
It should work without any changes -- if there are problems they are most likely with any LOCALIZE statement. If so, you can safely remove the LOCALIZE function: that is, if it says something like:

LOCALIZE("Hello young lovers") change to "Hello Young Lovers".
Then you need to change _tool_list.txt in the same folder by adding the following lines:
button lm_smooth M
button lm_peak P
Put these lines where you want the buttons to appear - I have them directly after lm_curvature
velu
Posts: 47
Joined: Sun Jun 22, 2008 10:52 am
Location: India - Chennai
Contact:

Post by velu »

I have put the peak and smooth buttons and changed the _tool_list.txt. Works as well. But lua console error shows.


I didn't understand in this script. How can remove the LOCALIZE function?
function LM_Peak:UILabel()
return(MOHO.Localize(self.BASE_STR + 1, "Peak"))
end
I don't have script knowledge.
I love Moho
User avatar
Barry Baker
Posts: 342
Joined: Fri Aug 27, 2004 6:58 am
Location: UK
Contact:

Post by Barry Baker »

Ok, that line should be changed to
function LM_Peak:UILabel()
return "Peak"
end
By the way, I don't have any scripting knowledge either, I just follow what I read here in the forum :D
velu
Posts: 47
Joined: Sun Jun 22, 2008 10:52 am
Location: India - Chennai
Contact:

Post by velu »

Thanks for enabling me to master these tools.
I love Moho
Post Reply