EEVEE-Next: Rename light probes
Update to the new naming convention for `Light Probes`: `Reflection Cubemap` -> `Sphere` `Reflection Plane` -> `Plane` `Irradiance Grid` -> `Volume` Note that this breaks the Python API (`bpy.types.LightProbe.type`). Pull Request: https://projects.blender.org/blender/blender/pulls/113452
This commit is contained in:
@@ -43,13 +43,13 @@ def setup():
|
||||
# Does not work in edit mode
|
||||
try:
|
||||
# Simple probe setup
|
||||
bpy.ops.object.lightprobe_add(type='CUBEMAP', location=(0.5, 0, 1.5))
|
||||
bpy.ops.object.lightprobe_add(type='SPHERE', location=(0.5, 0, 1.5))
|
||||
cubemap = bpy.context.selected_objects[0]
|
||||
cubemap.scale = (2.5, 2.5, 1.0)
|
||||
cubemap.data.falloff = 0
|
||||
cubemap.data.clip_start = 2.4
|
||||
|
||||
bpy.ops.object.lightprobe_add(type='GRID', location=(0, 0, 0.25))
|
||||
bpy.ops.object.lightprobe_add(type='VOLUME', location=(0, 0, 0.25))
|
||||
grid = bpy.context.selected_objects[0]
|
||||
grid.scale = (1.735, 1.735, 1.735)
|
||||
grid.data.grid_resolution_x = 3
|
||||
|
||||
Reference in New Issue
Block a user