Tuesday, April 7, 2009

I went through some stuff in mel today.  I noticed that a lot of the syntax was like unix.  The commands took an option, i think they call them flags in mel though, and a lot of the variables have to be declared, like in C and java.

i wrote a little code to create a plane and i tried to change the color but i couldnt figure out how to.

The way i think changing color would be to assign a material first.  I looked around in the tutorials to find how to change it but i wasnt able to.  But once i find it i bet there is a color option in the material to change its color.  Probably simply called color

int $planeLength = 5;
int $planeWidth = 5;

plane -length $planeLength -width $planeWidth;