mcjExoRotatorA

Introduction

This script for Daz studio is intended for animators and pose setting

Example : you spent hours creating a walk cycle. only to discover that ... yes your character is tilting back or forth too much and defies the laws of physics

Using this script you can rotate the animated figure just the right amount and save the day

History

2014 January 17 - released

Installation

The zip package is found at the bottom of this page

unzip it in your daz content folder, typically

C:\Program Files\DAZ\Studio\content\

or

C:\Program Files (x86)\DAZ\Studio\content\

once installed, it will appear in your content library, under Studio / Scripts / mcasual

or

C:\Users\Public\Documents\My DAZ 3D Library\

once installed, it will appear in your content library, under My DAZ 3D Library / Scripts / mcasual

Use

in the image below, i created 2 primitives/cylinders

the green cylinder will be called "the reference"

the yellow cylinder will be called the rotator"

In the following order ( the order is very important )

i select

1 - the reference

2 - the rotator

3 - Amy's ankle ( lFoot )

i run the script

we can see that the whole figure was rotated according to the angle between "the reference" and "the rotator"

we can also see that the rotation center was the ankle

note that the rotation and the translation was in fact applied to the hip node of the figure

the script computed the displacement of the hip node require to keep the ankle location steady

After a few iterations of using the script on the ankle, knee and hip we get to this situation

( were also used the mcjKeepOrient script and the mcjAutoLimb script

And this happens to be exactly the situation we were describing in the introduction

we worked on an animation cycle for minutes now

and the figure is tilted too much backward

so we'll rotate Amy around her ankle 7 degrees

and there you have it !

License

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

// by mCasual/Jacques

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

// ( MIT License )

// Copyright (c) <2013> <mCasual/Jacques>

// Permission is hereby granted, free of charge, to any person

// obtaining a copy of this software and associated documentation

// files (the "Software"), to deal in the Software without

// restriction, including without limitation the rights to use,

// copy, modify, merge, publish, distribute, sublicense, and/or sell

// copies of the Software, and to permit persons to whom the

// Software is furnished to do so, subject to the following

// conditions:

//

// The above copyright notice and this permission notice shall be

// included in all copies or substantial portions of the Software.

//

// 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.

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