SS - Select Keys (v1.2.2)

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
SimplSam
Posts: 1259
Joined: Thu Mar 13, 2014 9:09 am
Location: London, UK
Contact:

SS - Select Keys (v1.2.2)

Post by SimplSam »

Provides one-click (or key) selection of animation keyframes in the full length of the timeline.

Image


Features

The eligible keyframe keys can now be filtered for selection by:

Bones, Points, Shapes: Preselect items on the canvas (with their keys presented as selectable in the timeline). — This is how V1.00 worked.


New in V1.2:

Key Color: You can also preselect keys in the timeline, then only other keys with the same color(s) will be eligible for selection by the tool.

Frame Range: Use the Play Start and/or Play Stop markers to define and restrict the area of the timeline that will be in scope for the keyframe selection.

Frame Interval: If a Frame Range is set, and the frame playhead position (current frame) lies within the play range, then the offset between the start of play and the frame position will be used as the Frame Interval. e.g. Play Start on frame 2, End Frame at 96, Frame position at frame 4. Then keyframes between frames 2 and 96 (inclusive) on every 2nd/even frame would be eligible.

All can be used in any combination.


Summary

Works with:
- all selectable / non-selectable animatable item object properties i.e. for selected Bones, Points, Shapes.
- multiple selected layer timelines (visible in timeline)
- split transformation dimensions
- multiple object and property key types simultaneously (i.e. Bone transforms and Shape style/effects)
- matching keyframe colors- frame ranges and frame intervals

Version:
  • version: 01.2.2#5512 MH12+
  • release: 1.2.2
  • by Sam Cogheil (SimplSam)
Download:
How do I get set up ?
  • To install:
    • Use the Moho ‘Scripts’ > ‘Install Script …’ menu (after you Download for Install Script, and extract the zip files)
    – or –
    • Save the ‘ss_select_keys.lua’ and ‘ss_select_keys.png’ files to your computer into your <custom>/scripts/tool folder
    • Reload Moho scripts (or Restart Moho)
Special Thanks to:
Last edited by SimplSam on Thu Dec 18, 2025 6:34 pm, edited 3 times in total.
Moho 14.4 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.4 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Daxel
Posts: 1089
Joined: Wed Mar 27, 2019 12:34 pm

Re: SS - Select Keys

Post by Daxel »

Thanks for sharing! I imagine this will be very handy to delete or move those specific keyframes, right? What is the most common use case you have in mind?
User avatar
SimplSam
Posts: 1259
Joined: Thu Mar 13, 2014 9:09 am
Location: London, UK
Contact:

Re: SS - Select Keys

Post by SimplSam »

All of the above. I wrote it in response to a user request on Discord. But for me - it would be moving the keyframes or even changing the interpolation settings etc.
Moho 14.4 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.4 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
User avatar
SimplSam
Posts: 1259
Joined: Thu Mar 13, 2014 9:09 am
Location: London, UK
Contact:

Re: SS - Select Keys (v1.2.2)

Post by SimplSam »

The script has been updated (v1.2.2) to additionally allow the selection of keyframes within a Frame Range, by Keyframe color, and by Frame Interval.
Moho 14.4 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.4 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Post Reply