Last active
May 9, 2018 03:17
-
-
Save deathponta/bd3a081ef7caf05e8839711d1e817058 to your computer and use it in GitHub Desktop.
シーン内MotionTrailノードを削除
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
シーン内MotionTrailノードを削除 | |
手軽にモーショントレイルを作って確認した後に、全て一括で削除する時に便利 | |
モーショントレイルの作成と削除ボタンをシェルフに登録すると便利! | |
*/ | |
proc DeleteAllMotionTrail(){ | |
$trails = `ls -type motionTrailShape`; | |
if( size($trails) == 0 ){ | |
print "Not exist motionTrail"; | |
return; | |
} | |
for( $trail in $trails ){ | |
$trans = `listRelatives -p $trail`; | |
delete $trans; | |
} | |
print "Deleted all motionTrail !!"; | |
} | |
DeleteAllMotionTrail(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment