Notifications
Clear all
[Closed] Bone and diffuse colour
Jun 28, 2006 4:08 am
Hi everyone
I’ve got two really simple questions which I can’t seem to figure out…
-
Under “Bone tools” > “Bone Coloring”. How do you change the colour of the bone to let’s say red using MaxScript?
-
How do you assign a diffuse colour to an object. I’ve been getting an error with this piece of code…
abc = (color 100 100 100)
abc.hue = 200
abc.saturation = 200
abc.value = 200
$Box01.material.Diffuse = abc
– I get the error message “Unknown property: “Diffuse” in undefined”
So what is the property name for diffuse color?
By the way I’m using Max 8.0 SP2
Thanks for reading.
regards,
Mike
2 Replies
Jun 28, 2006 4:08 am
To change the diffuse property of a material you have to assign a material first:
theBox = box ()
abc = (color 100 100 100)
abc.hue = 200
abc.saturation = 200
abc.value = 200
theBox.material = standard()
theBox.material.Diffuse = abc
to change the color of a bone without assigning a material (works for all objects):
b = bone()
b.wirecolor = red
Georg