//switchTopView
lookThru top;
//switchFrontView
lookThru front;
//switchSideView
lookThru side;
//switchPerspView
lookThru persp;
//lookThrouSelected
string $selected[] = `ls -sl`;
lookThru $selected[0];
キーを打つ度にTangentがデフォルトになってしまわないセットキーコマンド
//setTransKey
proc tksetKey(string $attr)
{
float $t = `currentTime -query`;
float $val = `getAttr $attr`;
int $result = `keyframe -t $t -vc $val $attr`;
if( 0 == $result ){
setKeyframe $attr;
}
}
proc tksetTransKey()
{
string $obj[] = `ls -sl`;
string $o;
for( $o in $obj ){
tksetKey(($o + ".tx"));
tksetKey(($o + ".ty"));
tksetKey(($o + ".tz"));
}
}
tksetTransKey();//
//setRotateKey
proc tksetKey(string $attr)
{
float $t = `currentTime -query`;
float $val = `getAttr $attr`;
int $result = `keyframe -t $t -vc $val $attr`;
if( 0 == $result ){
setKeyframe $attr;
}
}
proc tksetRotateKey()
{
string $obj[] = `ls -sl`;
string $o;
for( $o in $obj ){
tksetKey(($o + ".rx"));
tksetKey(($o + ".ry"));
tksetKey(($o + ".rz"));
}
}
tksetRotateKey();//
//setScaleKey
proc tksetKey(string $attr)
{
float $t = `currentTime -query`;
float $val = `getAttr $attr`;
int $result = `keyframe -t $t -vc $val $attr`;
if( 0 == $result ){
setKeyframe $attr;
}
}
proc tksetScaleKey()
{
string $obj[] = `ls -sl`;
string $o;
for( $o in $obj ){
tksetKey(($o + ".sx"));
tksetKey(($o + ".sy"));
tksetKey(($o + ".sz"));
}
}
tksetScaleKey();//