You are on page 1of 1

import bpy

# Set render engine to Cycles


bpy.context.scene.render.engine = 'CYCLES'

# Enable Denoising for smoother renders


bpy.context.scene.view_layers[0].cycles.use_denoising = True

# Set the render samples (adjust based on your scene complexity)


bpy.context.scene.cycles.samples = 100

# Enable Ambient Occlusion for more realistic shading


bpy.context.scene.view_layers[0].cycles.use_ambient_occlusion = True

# Enable Bloom for a more cinematic look


bpy.context.scene.view_layers[0].cycles.use_bloom = True

# Enable Motion Blur for realistic motion effects


bpy.context.scene.render.use_motion_blur = True

# Set the shutter speed for motion blur


bpy.context.scene.render.motion_blur_shutter = 1.0

# Set the render resolution (adjust based on your needs)


bpy.context.scene.render.resolution_x = 1920
bpy.context.scene.render.resolution_y = 1080

# Set the render output format and file path


bpy.context.scene.render.image_settings.file_format = 'PNG'
bpy.context.scene.render.filepath = "//output_render.png"

# Render the scene


bpy.ops.render.render(write_still=True)

You might also like