-- ************************************************** -- Provide Moho with the name of this script object -- ************************************************** ScriptName = "MS_ToolInfo" -- ************************************************** -- General information about this script -- ************************************************** MS_ToolInfo = {} function MS_ToolInfo:Name() return "Tool Info" end function MS_ToolInfo:Version() return "1.0" end function MS_ToolInfo:Description() return "Lists Keyboard shortcuts for tools" end function MS_ToolInfo:Creator() return "Myles Strous" end function MS_ToolInfo:UILabel() return("Tool Info") end -- ************************************************** -- Recurring values -- ************************************************** MS_ToolInfo.firstTime = 0 -- ************************************************** -- The guts of this script -- ************************************************** function MS_ToolInfo:OnMouseDown(moho, mouseEvent) self:PrintInfo() end function MS_ToolInfo:PrintInfo(moho) print([[ Moho 5 shortcut keys. See also the non-alphabetical shortcuts listed in the Moho helpfile. A : add point/bone Ctrl-A : select all B : select bone Ctrl-B : Batch export C : adjust curvature Ctrl-C : copy D : delete edges Ctrl-D : random line thickness E : rectangle Ctrl-E : export animation F : freehand drawing Ctrl-F : toggle NTSC safe zone display G : group (select) points Ctrl-G : snap to grid H : hide edge Ctrl-H : toggle output only I : bind points Ctrl-I : select inverse J : Ctrl-J : timeline window K : Ctrl-K : style window L : oval (ellipse) Ctrl-L : reset line thickness M : smooth Ctrl-M : mute soundtrack N : noise distortion Ctrl-N : new document O : Ctrl-O : open document P : re-parent bone / peak point Ctrl-P : preview render Q : select shape Ctrl-Q : quit R : rotate points/bone Ctrl-R : render S : scale points/bone Ctrl-S : save document T : translate points/bone Ctrl-T : insert text U : create shape Ctrl-U : show tracing image V : vertical shear Ctrl-V : paste W : line width Ctrl-W : close document X : magnet Ctrl-X : cut Y : Ctrl-Y : select tracing image Z : manipulate bones Ctrl-Z : undo --------- 0 : set origin Enter/Return : select none 1 : translate layer Tab : select connected 2 : scale layer 3 : rotate layer 4 : track camera 5 : zoom camera 6 : roll camera 7 : pan/tilt camera 8 : rotate workspace (also Ctrl-RMB) 9 : orbit workspace Right-mouse : pan workspace, drag numeric fields Shift-Right-mouse : zoom workspace Ctrl-Right-mouse : rotate workspace Mouse wheel - scroll timeline, zoom workspace - numeric fields (Ctrl to halve, Shift to double) ================== From the Moho manual: ================== Alt+Backspace, Alt+C, Alt+V - delete, copy, paste keyframes --------------------- Can be used any time --------------------- Escape Automatically adjust the view to see everything in the active layer - hold the shift key to zoom in on the currently selected points Home Reset the view to see the overall project Enter/Return De-select all points Tab Select all points that are connected to the current selection Left Arrow Step back one frame in the timeline - hold shift to rewind Right Arrow Step forward one frame in the timeline - hold shift to advance to end of animation -------------------------- Working with a Vector layer -------------------------- Delete/Backspace Delete the currently selected points Spacebar Weld two points together - usually used with the Translate or Add Point tools --------------------- Working with Fill tools --------------------- Delete/Backspace Delete the selected shape Spacebar Define a shape based on current selection Up Arrow Raise selected shape up one level - hold shift to raise to top Down Arrow Lower selected shape down one level - hold shift to lower to bottom ----------------------- Working with Bone tools ----------------------- Delete/Backspace Delete the selected bone (and any child bones) Spacebar Bind points to selected bone Up Arrow Select parent of current bone Down Arrow Select child of current bone (only works if current bone has just one child) -------------------------------- Working with the Timeline window -------------------------------- Alt+Backspace Delete the selected keyframe(s) Alt+C Copy the selected keyframe(s) Alt+V Paste the previously copied keyframe(s) Page Up When in graph mode, zoom in on the timeline - hold shift to move the graph up Page Down When in graph mode, zoom out from the timeline - hold shift to move the graph down End Auto-zoom the timeline, based on the active animation channel (when in graph mode) ]]) end function MS_ToolInfo:OnKeyDown(moho, keyEvent) -- self.firstTime = self.firstTime + 1 -- if self.firstTime > 1 then -- else self:PrintInfo() end