Sep 29, 2009

Jan 27, 2008

Bricks



Script:

for ($i = 0; $i< 30; $i++) {
for ($j = 1; $j<16; $j++) {
$rx = rand(-3, 2);
$rz = rand(-4,4);
////for change in length of brick
int $l;
if ($i < 10) {
$l = $i ;
} else if ($i >= 10) {
$l = ($l-1);
}
polyCube -w 4 -d 1 -h 1; //for brick length variation, change -w "4" to "$l";
move $rx 0 $rz;
}
select -all ;
group;
rotate 0 10deg 0;
move -r 0 1 0;
}


Download: simple script
| interfaced_script