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 and is either POINT or SPOT type
- if obj.type == 'LIGHT' and obj.data.type in {'POINT', 'SPOT'}:
- # Multiply the radius size (shadow_soft_size) by 2
- obj.data.shadow_soft_size /= 71
- # Update the scene to reflect the changes
- bpy.context.view_layer.update()
Advertisement
Add Comment
Please, Sign In to add comment