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:
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;
}
}
}
Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.