View Full Version : Selection problem

03 March 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+"";

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


03 March 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

03 March 2006, 12:18 PM
Thanks for super fast reply:)

03 March 2006, 12:21 PM
np :) Superfast replies are better.

CGTalk Moderation
03 March 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.