PDA

View Full Version : selecting children of selected node


mrp86
09-17-2010, 03:52 PM
ok, so all I need to do is select the children directly below a selected node, i.e.

$sel[] = `ls -sl`;
$for ($i = 0; $i < size($sel); ++$i){
$pieces[] = `list of objects directly under $sel[0]`;
$endPiece[$i] = $pieces[(size(pieces)-1)];
}
select -r $endPieces

it cant be hard, but for the life of me I can't get the right ls command extention

kind regards,

Pete

Robert Bateman
09-17-2010, 04:00 PM
pickWalk -direction "down";
$objs = `ls -sl`;

mrp86
09-17-2010, 04:03 PM
thanks, It needs to work by selecting all of the children though, not just the first one

mlefevre
09-17-2010, 05:25 PM
select `listRelatives -type "transform"`;

NaughtyNathan
09-17-2010, 07:23 PM
select -hiany use?
:nathaN

mrp86
09-20-2010, 01:47 PM
select `listRelatives -type "transform"`;

sorted - cheers mate!

CGTalk Moderation
09-20-2010, 01:47 PM
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.