Change colour of cubes
This commit is contained in:
@@ -6,8 +6,8 @@ size = 1
|
||||
# Setting the x, y, and z positions.
|
||||
x = y = z = size / 2
|
||||
# Setting the number of cubes in each coordinate.
|
||||
xNum = 5
|
||||
yNum = 5
|
||||
xNum = 10
|
||||
yNum = 10
|
||||
zNum = 1
|
||||
# Setting the initial value for the number of cubes in each recursive call.
|
||||
cubeCount = 0
|
||||
@@ -46,7 +46,7 @@ def spawnGround():
|
||||
activeObject = bpy.context.active_object
|
||||
|
||||
# Create the material (if the material already exists, then skip)
|
||||
groundMaterial = createMaterial(0.3, 1, 0.2, 1)
|
||||
groundMaterial = createMaterial(0, 0, 0.6, 1) #Colour input is: red, blue, green, alpha
|
||||
assignMaterial(activeObject, groundMaterial)
|
||||
|
||||
# Function to add a material to the selected object.
|
||||
|
Reference in New Issue
Block a user