Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
シーン内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
You can’t perform that action at this time.