mcjDecimateEX

Introduction

This script for Daz Studio helps you simplify animations by getting rid of superfluous keyframes.

Sometimes animations from motion capture systems have high frame rate and are very shaky.

Decimating those animations makes the motions smoother, the reduced number of keyframes greatly helps further work on the animation curves.

Note that if you are into animations in Daz Studio, my mcjSceneGraf plugin and the mcjCycleFilter scripts are worth the detour.

This image is just a 'from-the-making-of' image, the script is here now !

History

July 9th 2016 9:05PM - Released

July 8th - Beta version

Installation

The zip package is found at the bottom of this page

unzip it in your daz content folder,

typically :

C:\Users\USERNAME\Documents\DAZ 3D\Studio\My Library

once installed, it will appear in your content library, under

My Library / Scripts / mcasual

Starting with Windows 7 if you right click on the downloaded zip file

and select the [Extract All ....] pop-up menu item

you simply browse up to your Daz Studio Content Folder

and the files will fall in the proper folder

Use

You must select one or many nodes.

If the primary selection is a figure, you will have access to the 'pose' property set.

This set includes the bone and root rotations plus the root and hip translations.

For the other property sets, the list of properties will be listed on-screen.

If the properties of interest are not already highlighted, you must highlight them.

Only selected properties will be processed.

Only the 'Delete All Keys' operation will affect the whole animation range.

All the other operations are performed over the current playRange and only the current playRange.

The Loopify operation will convert the playrange animation into a looping animation.

Loopify v1 takes the first frames of the playrange and blends them with the last frames.

"Loopify v2 takes the first frame of the playrange and blends it with the last frames.

The 'Looping Cross-Fade Length' slider lets you set the duration of the blending effect.

The 'Decimator' operation will memorize a few keyframed values from the playrange,

then all the keyframed values that fall in the playrange are erased,

finally the memorized values are (re)applied.

The 'Decimator Step' slider lets you set the gap between memorized keyframes.

For each frame of a property animation, the '3-Frames Smooth' operation replaces its value with the average value of 3 frames.

License

// =====================================================================

// License

// =====================================================================

// by mCasual/Jacques

// You can use this script freely for personal or commercial use.

// You may not sell, resell, sub-license or rent this script in any way.

// you may credit this script to mCasual/Jacques

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,

// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES

// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND

// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT

// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,

// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR

// OTHER DEALINGS IN THE SOFTWARE.

// =====================================================================