Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- # Get the selected objects
- selected_objects = bpy.context.selected_objects
- # Iterate through the selected objects
- for obj in selected_objects:
- # Check if the object is a light
- if obj.type == 'LIGHT':
- # Multiply the radius size by 2
- light_data = obj.data
- light_data.shadow_soft_size *= 2
- # Alternatively, if you want to scale the size for area lights, you can do:
- if light_data.type == 'AREA':
- light_data.size *= 2
- light_data.size_y *= 2 # If using rectangular area lights
- # Update the scene to reflect the changes
- bpy.context.view_layer.update()
Advertisement
Add Comment
Please, Sign In to add comment