Reset Pose Script (Maya)
$0+
$0+
https://schema.org/InStock
usd
Truong CG Artist
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
Size
576 Bytes
Add to wishlist
Ratings
2
4.5
5 stars
50%
4 stars
50%
3 stars
0%
2 stars
0%
1 star
0%