Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Alias software > mel script with...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 880 of 909
Post > Topic >>

mel script with diamond checker board question tia sal2

by temp <temp@[EMAIL PROTECTED] > Oct 2, 2007 at 04:56 AM

Greetings all 

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
 




 2 Posts in Topic:
mel script with diamond checker board question tia sal2
temp <temp@[EMAIL PROT  2007-10-02 04:56:57 
Re: mel script with diamond checker board question tia sal2
DTrel <DTrel@[EMAIL PR  2007-10-02 08:25:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 4:05:50 CDT 2008.