I have a mel script that works at making diamond shapes across and down..I would like it to also have a diamond shape
where the gaps are located in between ...I think I need another for loop but I'm not sure if I need another variable.
int $i;
int $j;
for ($i =0; $i <4; $i++) {
for ($j=0; $j<4; $j++) {
polyCube;
move -r ($j*1.414) 0 ($i*1.414); //diamond
rotate -r -os 0 -45 0;
/* The diagonal of a square with a base of 1 is 1.414
or square root of 2, or a 45 degree angle */
}
}
tia sal2