XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : fast way to select all joints at once??

02-09-2005, 02:37 AM
i was wondering if there was a quick way to select all joints in a character. right now, i'm having to shift select each joint one by one, and that's very tedious. right clicking in the scene and choosing "select all" won't select joints either.

this will save me a ton of time.


02-09-2005, 03:35 AM
string $selected[] = `ls -type joint`;
select -r $selected;

...Don't you just love MEL sometimes???? :)

02-09-2005, 03:44 AM
Or you could just choose Select All By Type > Joints from the Edit menu. Just be careful you don't accidentally choose
Delete All by Type. That's what I usually do. :D

02-09-2005, 03:45 AM
how do i use that?

sorry, i'm not very familiar with MEL scripts. i typed that in the command line, but nothing happened. in the command feedback, it did say "result:(named all my joints here)" but they weren't selected in the editor or anything.

02-09-2005, 03:46 AM
ah! select all by type...thanks einstein!

me no think sometimes.

02-09-2005, 03:56 AM
you may even like the cheapie:

select the root of the heirachy then in the cmd line:

select -hi;


02-09-2005, 04:08 AM
what would be really helpful, is if there's a way to see my keyframed joints in the dopesheet all the time, without having to select them. it turns out that selecting all the joints isn't really that useful, since it just clogs up my dopesheet with unkeyed joints

02-09-2005, 11:12 AM
so turn auto update on your dopesheet off... that'll leave all ur joints in there all the time...

02-09-2005, 03:58 PM
This will select all joints that are keyframed:

select -cl;
for ($joint in `ls -type joint`)
{for ($attr in `listAttr -k $joint`)
{float $keys[] = `keyframe -q -timeChange ($joint + "." + $attr)`;
if (`size $keys`>0)select -add $joint;}

02-09-2005, 07:02 PM
pick root, then Edit> Select Hierarchy
Then copy the 2 commands from your script editor and make a MEL button on your shelf

02-09-2005, 07:04 PM
great. the autoload feature in the dopesheet should be what i need....all the joints are in there now and i don't even have them selected.

thanks guys.

oh yeah, making the mel button with that script is working great too!

02-11-2005, 01:46 AM
make a quick select set.

i use them all the time and love them.


CGTalk Moderation
02-11-2006, 02:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.