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 coloraffect_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