$currentPanel = `getPanel -withFocus`;
string $panelType = `getPanel -to $currentPanel`;
if ($panelType == "modelPanel")
{
    int $on_flag = `modelEditor -q -nurbsCurves $currentPanel`;
    if ($on_flag == 0)
    {
        modelEditor -e -nurbsCurves 1 $currentPanel;
    }
    else
    {
        modelEditor -e -nurbsCurves 0 $currentPanel;
    }
}

Type your paragraph here.

Reset Animation Control to Zero

While having one or more animation controls selected I run this script to reset them back to zero. I place this in a shortcut key - ALT+R​​

3ds Max Align Tool For Maya

Animation Portfolio

Key Breakdown Colour


I colour my breakdown keys for clarity while working. I place this in a shortcut key - ALT+S

​​​

... or if I just want to re-colour an existing key I'll use this code instead.

//set a key and colour it

$now=`currentTime -q`;

setKeyframe;

keyframe -tds on -t ($now + ":" + $now) `ls -sl`;

I also enjoy a bit of simple MEL scripting to speed up my workflow and, when needed, help out with studio pipelines and tools.


Below is a few examples of my scripting...


//reset selected controllers to their default transformations
//written by Darren Rea 30/08/2016

//get selected control
$resCtl = `ls -sl`;
print $resCtl;

//check for locked attributes and reset attributes to zero/one.
for ($bbb in $resCtl){
    if (`getAttr -l ($bbb + ".translateX")` == 1) { 
        print ($bbb + ".translateX is locked \n"); 
        }else {
        setAttr ($bbb + ".translateX") 0;
        }
    if (`getAttr -l ($bbb + ".translateY")`) { 
        print ($bbb + ".translateY is locked \n"); 
        }else {
        setAttr ($bbb + ".translateY") 0;
        }
    if (`getAttr -l ($bbb + ".translateZ")`) { 
        print ($bbb + ".translateZ is locked \n"); 
        }
        else {
        setAttr ($bbb + ".translateZ") 0;
        }
    //reset rotation
    if (`getAttr -l ($bbb + ".rotateX")`) { 
        print ($bbb + ".rotateX is locked \n"); 
        }
        else {
        setAttr ($bbb + ".rotateX") 0;
        }
    if (`getAttr -l ($bbb + ".rotateY")`) { 
        print ($bbb + ".rotateY is locked \n"); 
        }
        else {
        setAttr ($bbb + ".rotateY") 0;
        }
    if (`getAttr -l ($bbb + ".rotateZ")`){
        print ($bbb + ".rotateZ is locked \n"); 
        }
        else {
        setAttr ($bbb + ".rotateZ") 0;
        }
    //Reset scale
    if (`getAttr -l ($bbb + ".scaleX")`) { 
        print ($bbb + ".scaleX is locked \n"); 
        }
        else {
        setAttr ($bbb + ".scaleX") 1;
        }
    if (`getAttr -l ($bbb + ".scaleY")`) { 
        print ($bbb + ".scaleY is locked \n"); 
        }
        else {
        setAttr ($bbb + ".scaleY") 1;
        }
    if (`getAttr -l ($bbb + ".scaleZ")`){
        print ($bbb + ".scaleZ is locked \n"); 
        }
        else {
        setAttr ($bbb + ".scaleZ") 1;
        }
}

A tool that can track your arcs while animating. Particularly helpful for character animators.
Is very fast and interactive.
It creates a sphere which is parent constrained to an object of your choice. The sphere is ghosted and coloured. 

//set colour of key only

keyframe -tds on

Darren Rea

Darren Rea © 2018

A tool that can track an artists time depending on what tools they are using within Maya.


Coming soon.

Here is a collection of the animation tools I use in Maya. They are all MEL code. I placed them here mostly for my convenience, but feel free to try them out.

A Maya tool that can align 2 objects. Based on 3ds Max align tool. Just select the target object first, then the object you would like to align, set your preference in the tools window and press apply.




Hide Animation Controllers


I place this in a shortcut key - ALT+E


​​​

Animation uTILITIES

Time Tracker for Maya

Arc Tracker For Maya