Message 1 of 4
Cutting script?
Not applicable
05-29-2011
03:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have found a cutting script (see below)
Is it possible to cut it in one direction?? only the z axis??
{ // 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??