icon Tangent Weight

Download ml_tangentWeight.py

Revision 5
Last Update 2018-05-14
License MIT

Description

Scale keyframe tangents up or down incrementally without changing their angle. The result is basically increasing or decreasing the influence of a keyframe on the animCurve. Can also weight tangents toward the left or right, which increases influence on one side of the keyframe while reducing it on the other.

Installation

Copy this file into your maya scripts directory, for example:

C:/Documents and Settings/user/My Documents/maya/scripts/ml_tangentWeight.py

Run the tool in a python shell or shelf button by importing the module, and then calling the primary function:

import ml_tangentWeight
ml_tangentWeight.ui()

Usage

Select Keyframes to affect, and press the desired button. To further affect the tangents, continue pressing the button to increment the weight until the desired weight is attained. This works well as a hotkey.

Installation

Copy this file into your maya scripts directory, for example: C:/Documents and Settings/user/My Documents/maya/scripts/ml_tangentWeight.py Run the tool in a python shell or shelf button by importing the module, and then calling the primary function: import ml_tangentWeight ml_tangentWeight.ui()

Ui

[-] : Scale tangent down. [+] : Scale tangent up. [<] : Weight tangent toward the left. [>] : Weight tangent toward the right.

Requirements

This script requires the ml_utilities module, which can be downloaded here: https://raw.githubusercontent.com/morganloomis/ml_tools/master/ml_utilities.py

UI Options

Scale tangent down. Right-click to create a shelf or hotkey
Scale tangent up. Right-click to create a shelf or hotkey
Weight tangent toward the left. Right-click to create a shelf or hotkey
Weight tangent toward the right. Right-click to create a shelf or hotkey

Revision History

Revision Date Note
1 2016-03-25 First publish.
2 2016-03-27 Fixed command name typo
3 2016-05-01 fixed error when nothing is selected.
4 2018-02-17 Updating license to MIT.
5 2018-05-14 Shelf support.