WP Platter Control: New Script to Animate (rotational) Bone Speeds with Accerelation/Deceleration

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
mmmaarten
Posts: 271
Joined: Mon Sep 19, 2022 2:19 pm
Location: Utrecht, The Netherlands
Contact:

WP Platter Control: New Script to Animate (rotational) Bone Speeds with Accerelation/Deceleration

Post by mmmaarten »

Image

Hi Folks, I've just published a new script to make a Bone Rotate Endlessly with acceleration/deceleration/reverse etc. to the Angle of an (Animated) control Bone with ease! 😎

Simply put the reason why I made this is because Moho (but also Spine) is good at animating angles, but sometimes we don't want to animate angles, we want to animate speeds with acceleration and deceleration. Which can get very complex very quickly and cause headaches in pose to pose based software. Not anymore now!

The possibilities are limitless really (windmills, cyclists, car wheels, airplane propellors, walkcycles, records, reel to reel recorders etc.)! And together with smartbones even more (animate walkcycles, cyclist cycles etc. back'n'forth with acceleration/deceleration etc.!) So with this script we can now even speed up and slow down timelines 🙂 And together with other scripts, like audio to bone wiggle, we can for instance let the speed of the platter be controled by audio volumes!
The more creative tools the better! 8)

More info on mohoscripts.com (https://mohoscripts.com/script/wp_platter_control) and in the demo/short tutorial video below 🙂

Enjoy!

Last edited by mmmaarten on Tue Jan 09, 2024 2:48 pm, edited 1 time in total.
Adults should play more often
mohgirl
Posts: 73
Joined: Mon Mar 22, 2021 1:33 pm

Re: New Script to Animate (rotational) Bone Speeds with Accerelation/Deceleration

Post by mohgirl »

amazing,thank you
User avatar
mmmaarten
Posts: 271
Joined: Mon Sep 19, 2022 2:19 pm
Location: Utrecht, The Netherlands
Contact:

Re: New Script to Animate (rotational) Bone Speeds with Accerelation/Deceleration

Post by mmmaarten »

mohgirl wrote: Sat Dec 09, 2023 2:08 am amazing,thank you
Thanks! Enjoy it!
Adults should play more often
User avatar
mmmaarten
Posts: 271
Joined: Mon Sep 19, 2022 2:19 pm
Location: Utrecht, The Netherlands
Contact:

Re: New Script to Animate (rotational) Bone Speeds with Accerelation/Deceleration

Post by mmmaarten »

Just published v1.2.0 of the Platter Control Script with some fixes, improvements and extra features. These ones have changed since the initial release:

The script now also works with Speed bones that don't have keyframes themselves, but are controlled by control bones or smart bones to set an angle (Than turn on the 'Use real angle' checkbox!).

* Now possible to set what direction of the Speed DIal bone is UP (left, up, right, bottom)
* Introducing cycles modes (starting with two modes: 'One cycle on Repeat' and 'Endlessly increasing cycles'
* More rpm presets
* Show how many frames a cycle takes (updates when changing the RPM in the dialog)
* Replaced the setting 'Only write keys on frames where the speed bone dial had a keyframe' with '[experimental] Only write Keys if the Speed Changes'
* Dialog cleanup and improvements
* Internal fixes and improvements

BTW If you also have the Import from Spine Script than please update both Scripts, because they share the same WP_utils file, which has been updated.

See the full change log and download at https://mohoscripts.com/script/wp_platter_control

Image
Adults should play more often
mohgirl
Posts: 73
Joined: Mon Mar 22, 2021 1:33 pm

Re: New Script to Animate (rotational) Bone Speeds with Accerelation/Deceleration

Post by mohgirl »

NICE
User avatar
mmmaarten
Posts: 271
Joined: Mon Sep 19, 2022 2:19 pm
Location: Utrecht, The Netherlands
Contact:

Re: New Script to Animate (rotational) Bone Speeds with Accerelation/Deceleration

Post by mmmaarten »

Hi, Just published v1.3.0 of the Platter Control Script with new features and some changes. Updated at https://mohoscripts.com/script/wp_platter_control

- Added: New mode added: 'Cycle Range on repeat'. This new mode makes it possible to repeat over more than a single cycle (360 degrees) of the platterbone while still being limited to the amount of cycles entered in the 'Cycles' field (so platter bone angle won't unlimitedly increase forever but stays within cycles range). This way you can for example have a platter bone with a smart bone action ranging from 0 to -720 degrees (= 2 cycles of 360 degrees each) in which you can do all kinds of things, like letting a character walk forwards from 0 to -360 degrees and backwards from -360 to -719 degrees to create things like pingpong loops. So in this example; when the speed is 100% the first cycle will show the character walking forward and the second cycle will be the character walking backwards and after that repeats that sequence forever while the speed is 100% (or plays it accordingly to a different speed value or even in reverse when speed is -100% 🙂 ).
- Added: You can now apply speed changes to multiple platter bones at once using multi select in the platter bones list
- Added/Changed: The frame range that will be written in the rotation channels of platter bones will now be cleared from keyframes before starting writing new ones so there's never a left over keyframe there before writing new ones
- Changed: On higher frame intervals written keys now get the 'Step' interpolation. On one's these will now always be set to 'smooth'. So keyframes now explicitely gets set to an interpolation type.


A little explanation on the new mode: Please see 'Advanced: About creating a smart bone action to control with this script' on the mohoscripts page at https://mohoscripts.com/script/wp_platter_control


Image
Adults should play more often
User avatar
mmmaarten
Posts: 271
Joined: Mon Sep 19, 2022 2:19 pm
Location: Utrecht, The Netherlands
Contact:

Re: WP Platter Control: New Script to Animate (rotational) Bone Speeds with Accerelation/Deceleration

Post by mmmaarten »

This one just to add an example of when to use the script for musical equipment (for future reference); Reel to Reel tape deck on an animation I just finished and published! :D




Also great for vinyl records:
Adults should play more often
Post Reply