mrjosh
02-26-2002, 10:28 PM
Hey all. I'm just getting going with MEL and I need some help. I've got a script that works off of everything selected in the scene. Is there a way to deselect all selected group nodes? In other words, is there a way to tell if the current selection in my loop is a group node? Any help would be great. Thanks!
//Here's what I'm talking about...
string $selected[] = `ls -l`;
int $num_selected = size($selected);
int $object = 0;
for(; $object < $num_selected; $object++){
//if ($selected[$object] is a group node?????)
//deselect $selected[$object]
//the rest of the code
}
-MrJosh
//Here's what I'm talking about...
string $selected[] = `ls -l`;
int $num_selected = size($selected);
int $object = 0;
for(; $object < $num_selected; $object++){
//if ($selected[$object] is a group node?????)
//deselect $selected[$object]
//the rest of the code
}
-MrJosh
