PDA

View Full Version : Selection problem


H3ro
03-26-2006, 12:09 PM
Trying to solve a problem. The first part of the script creates a bunch of cubes, but i want then to be in a selection array:

//Turn the cubes into a selection
select -r ChocoCube0;
int $sel= ($sizeX*$sizeZ);
int $s=0;
while ($s <= $sel)
{
select -add "ChocoCube"+$s+"";
$s++;
}

string $CubeSel[] = `ls -sl -fl -l`;

As i am posting it here, you probably understand that there is something which is not working. Any help would be appriciated

Thanks

Mikademius
03-26-2006, 12:15 PM
you have a bunch of cubes you want to add in a selection?



string $select[] = `select "cube*"`;
string $listSel[] = `ls -sl -tr`;

print $listSel;


-tr is for transforms. You have to set this for whatever you want to select

H3ro
03-26-2006, 12:18 PM
Thanks for super fast reply:)

Mikademius
03-26-2006, 12:21 PM
np :) Superfast replies are better.

CGTalk Moderation
03-26-2006, 12:21 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.