Cutting script?

Cutting script?

Anonymous
Not applicable
592 Views
3 Replies
Message 1 of 4

Cutting script?

Anonymous
Not applicable
I have found a cutting script (see below)
{ // Cut it up
string $sel[] = `ls -sl`;
string $pObj = $sel;
float $bb[] = `polyEvaluate -boundingBox ($pObj)`;
int $i;
for ($i = 0; $i < 10; $i++) { // number of cuts
float $px = rand(($bb*0.95),($bb*0.95));
float $py = rand(($bb*0.95),($bb*0.95));
float $pz = rand(($bb*0.95),($bb*0.95));
float $rx = rand(0,180);
float $ry = rand(0,180);
float $rz = rand(0,180);
polyCut -pc ($px) ($py) ($pz) -ro ($rx) ($ry) ($rz) -ef 1 -eo 0 0 0 ($pObj);
polyCloseBorder ($pObj);
}
select -r ($pObj);
polySeparate ($pObj);
}


Is it possible to cut it in one direction?? only the z axis??
0 Likes
593 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
I have found this!
float $rx = rand(0,0);
float $ry = rand(0,0);
float $rz = rand(0,180);


It works but I want to cut it Z,Y and X,Z!

now it only cuts in Z,Y!
0 Likes
Message 3 of 4

Anonymous
Not applicable
    float $rx = 0;
float $ry = 90;
float $rz = 0;
0 Likes
Message 4 of 4

Anonymous
Not applicable
Wow that was easy!! TNX!!
0 Likes