keSetToZero 0.0.1 (maya script)

Return object to starting position.

License Type:

Freeware

File ID:

13712

File Size:

472 Bytes

Created / Updated:

Oct 17, 2009 / Aug 06, 2010

Owner:

Angelo Collazo   More free downloads from this user See users marketplace items See this users portfolio Send a Private Message

Platforms:

windows

Downloaded:

207

Maya:

2009

Tags:

set to zero, zero out, reset


When executed, this script returns your selected Maya object to its zero/original position on all attributes. 


For example, if your object is positioned at tx124 ty 192 tz134, rx039 ry495 rz103, sx193 sy184 sz 381, your object will be returned to a position of t000, r000, s111. Note that all other attributes for the controller will be returned to zero as well.

This script is good for animating, especially when you're tired of constantly typing in 0 in order to reset a controller. It works great as a hotkey, seeing as I use it as much as Tween Machine.

This script was created by my buddy, Kevin Edzenga, creator of the Tartarus Tool Box, also available for download.

Please visit my site, ANGELODCOLLAZO.com, to check out my freelance character animation work.



------------------------------------

HERE'S THE SCRIPT:

string $selected[]=`ls -sl`;

string $attrs[];

for($x=0; $x<size($selected); ++$x){

$attrs=`listAttr -k -u $selected[$x]`;

for($c=0; $c<size($attrs); ++$c){

if( ($attrs[$c] != "visibility") && ($attrs[$c] != "scaleX") && ($attrs[$c] != "scaleY") && ($attrs[$c] != "scaleZ")){

setAttr ($selected[$x]+"."+$attrs[$c]) 0;

}else if( ($attrs[$c] == "scaleX") || ($attrs[$c] == "scaleY") || ($attrs[$c] == "scaleZ")){

setAttr ($selected[$x]+"."+$attrs[$c]) 1;

}

}

}

People who have favorited this file