I am a biologist, and I have generated spheres in Blender at designated XYZ coordinates, and now I want to add color to each of those spheres. The spheres represent cells in a living organism, and I want to add color to indicate the differences between those cells.
I generated a CSV file that has 60 rows and four columns: X, Y, Z, and Q. The XYZ coordinates were imported into blender to generate 60 different spheres at each of the XYZ coordinates using a Python script. However, now I would like to add color to each of those spheres in a manner that is dependent on the Q value.
The operator I've used to generate the spheres in Blender is:
bpy.ops.mesh.primitive_uv_sphere_add(segments=32, ring_count=16, radius=0.5, calc_uvs=True, enter_editmode=False, align=("WORLD"), location=(' + xyz + '), rotation=(0,0,0))