Reputation: 11012
When I try, nothing happens. I select a color and click the object and nothing.
Maybe a python command?
Upvotes: 8
Views: 39709
Reputation: 51837
As @9000 mentioned, you might not have a material linked.
If you open a TextEditor window, you should be able to paste this script:
from random import random
import Blender
from Blender import *
scn = Blender.Scene.GetCurrent()
ob = scn.objects.active
m = ob.getData(mesh=True)
if(len(m.materials) < 1):
mat = Material.New('newMat')
m.materials += [mat]
m.materials[0].rgbCol = [random(), random(), random()]
Blender.Redraw()
This should set random colours, if you have a material linked, otherwise creates a new material and links it.
Note that you need Python installed on Windows for the console, and you need to start Blender from Terminal on OSX/Linux to see the console. Also, the snippet works for Blender 2.49, not 2.5x. You didn't mention which version of Blender you use.
HTH
Upvotes: 3
Reputation: 40884
Upvotes: 5