Set up color variation across objects

  1. Ensure that the same mila_material is assigned to all of the objects.
  2. Select all the objects.
  3. In the Scene tab, Objects section, click Add User Data to open the User Data Creation window.
  4. Name the user data, for example, sphere_color. The name only needs to be unique for the object.
  5. Ensure that the Type is set to color, for a color input to the mila_material.

  6. Select a Value color.

  7. Increase the Variance. The higher the variance, the more it varies from your chosen Value.

  8. Click Create, the window remains open, but the Script Editor prints a message indicating that user data is being created.

  9. In mila_material’s Attribute Editor, click the map button beside the Color attribute to connect a shader as input, then select mib_data_get_color.

  10. In the mib_data_get_color Attribute Editor, enter in the Name field the user data name that you created above; in this case, sphere_color.

  11. Render to see your objects with color variation.

  12. Note: You can continue to reselect groups of objects and rewrite different sets of colors for the same user data name. This is the reason for which the editor remains open.