Add Keyframe Script Additional Functionality (Requesting Modification of Existing Script)

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
BigBoiiiJones
Posts: 77
Joined: Sun Mar 22, 2020 11:33 pm

Add Keyframe Script Additional Functionality (Requesting Modification of Existing Script)

Post by BigBoiiiJones »

Can someone make it so this script could add/apply the keyframe settings to all child layers within a group/bone? Right now you'd need to click on every individual layer to add the keyframe. The benefit over this script and the built in add keyframe function is that you can choose what keyframes are created.

https://mohoscripts.com/script/sz_add_keyframe
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: Add Keyframe Script Additional Functionality (Requesting Modification of Existing Script)

Post by Stan »

Yes, I can modify it. I have some questions, however.
- When a group layer is selected and the button is pressed, should it key all points/bones inside all nested sublayers or should it only work on the top (immediate) level?
- Should it also work with switch layers?
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
BigBoiiiJones
Posts: 77
Joined: Sun Mar 22, 2020 11:33 pm

Re: Add Keyframe Script Additional Functionality (Requesting Modification of Existing Script)

Post by BigBoiiiJones »

Stan wrote: Sat Jan 28, 2023 5:43 pm Yes, I can modify it. I have some questions, however.
- When a group layer is selected and the button is pressed, should it key all points/bones inside all nested sublayers or should it only work on the top (immediate) level?
- Should it also work with switch layers?
I think it'd be neat to give the user the ability to control what can be keyframed based on a checkmark system maybe? I can see use cases where you'd literally want every single thing keyed including additional groups/bones/switch layers but then I could see other times where you may want only the surface group but not switch layers and such. I know right now I'd use it for keyframing groups/bones and all layers within including additional bones/groups however I wouldn't want it keyframing switch layers but that may change in a different file and setting. Hopefully this makes sense and helps with the direction.
Post Reply