PDA

View Full Version : Scripting question


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

CGTalk Moderation
01-13-2006, 01: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.