Skip to content

Instantly share code, notes, and snippets.

@deathponta
Last active May 9, 2018 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deathponta/bd3a081ef7caf05e8839711d1e817058 to your computer and use it in GitHub Desktop.
Save deathponta/bd3a081ef7caf05e8839711d1e817058 to your computer and use it in GitHub Desktop.
シーン内MotionTrailノードを削除
/*
シーン内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