blendersynth.blender.world

class blendersynth.blender.world.World[source]

World object - for managing world nodes, HDRIs, etc.

set_color(color, affect_scene=True)[source]

Set the world color.

Parameters:
  • color (Union[list, tuple]) – RGB or RGBA color

  • affect_scene (bool) – Toggle for whether color’s lighting should affect the scene (if False, functions as a solid background color)

set_hdri(pth, affect_scene=True, intensity=None)[source]

Set the HDRI image location

Parameters:
  • pth (str) – Path to the HDRI image (.hdr or .exr)

  • affect_scene (bool) – Toggle for whether color’s lighting should affect the scene (if False, functions as a solid background color)

  • intensity (float) – [Optional] Set the intensity of the HDRI lighting

set_intensity(intensity=1.0)[source]

Set the intensity of the color/HDRI.

Parameters:

intensity (float) – The intensity value