$0+

Reset Pose Script (Maya)

2 ratings
I want this!

Reset Pose Script (Maya)

$0+
2 ratings

You might not need to download any thing. 

Here is the video instruction: https://www.youtube.com/watch?v=37YSCXRl1ms

Here is the Mel script:

string $ctrlName[] = `ls -sl`;
for ($con in $ctrlName){
catchQuiet(`setAttr ($con + ".translateX") 0`);
catchQuiet(`setAttr ($con + ".translateY") 0`);
catchQuiet(`setAttr ($con + ".translateZ") 0`);
catchQuiet(`setAttr ($con + ".rotateX") 0`);
catchQuiet(`setAttr ($con + ".rotateY") 0`);
catchQuiet(`setAttr ($con + ".rotateZ") 0`);
catchQuiet(`setAttr ($con + ".scaleX") 1`);
catchQuiet(`setAttr ($con + ".scaleY") 1`);
catchQuiet(`setAttr ($con + ".scaleZ") 1`);
}


You can separate them into translate/ rotate/ scale only: 

TRANSLATE

string $ctrlName[] = `ls -sl`;
for ($con in $ctrlName){
catchQuiet(`setAttr ($con + ".translateX") 0`);
catchQuiet(`setAttr ($con + ".translateY") 0`);
catchQuiet(`setAttr ($con + ".translateZ") 0`);
}


ROTATE

string $ctrlName[] = `ls -sl`;
for ($con in $ctrlName){
catchQuiet(`setAttr ($con + ".rotateX") 0`);
catchQuiet(`setAttr ($con + ".rotateY") 0`);
catchQuiet(`setAttr ($con + ".rotateZ") 0`);
}


SCALE

string $ctrlName[] = `ls -sl`;
for ($con in $ctrlName){
catchQuiet(`setAttr ($con + ".scaleX") 1`);
catchQuiet(`setAttr ($con + ".scaleY") 1`);
catchQuiet(`setAttr ($con + ".scaleZ") 1`);
}


You could also map these script into hotkeys using Windows > Settings/Preferences > Hotkey Editor (link)

Hope it is useful. Cheers.

Truong

$
I want this!
Size
576 Bytes
Copy product URL

Ratings

4.5
(2 ratings)
5 stars
50%
4 stars
50%
3 stars
0%
2 stars
0%
1 star
0%