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

3 comments:

dag said...

Thank You for Posting also the Script, really appreciate!!
i want to try it Now!

/ dag /

Anonymous said...

i3awrni ba6ni when i see how simple computer language has become in comparison to ancient c++ which is what i had to learn , and now reading this .. ouch the script is just as beautiful as the result.

A. Benjasem said...

hehe beautiful comment too, thanks :)