Go Back   3-D Animation forums > << CLASS >> > 2010 Intermediate
Blogs FAQ Community Calendar New Posts


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old March 27th, 2010, 10:25 AM
philmc's Avatar
philmc philmc is offline
Administrator
 
Join Date: Sep 2008
Posts: 1,286
Default

Here's the MEL code that will allow you to select only the joints in a hierarchy for baking the keys.

// Begin copy
// Select the root joint only and execute this script

select -hi ; // selects the hierarchy
string $joints[] = `ls -sl -type joint` ; // puts the selected joints into an array

select -r $joints ; // select the array of joints
print (size($joints)) ; // print the total number of joints
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:24 AM.


Design & Development by DŽIpac
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.