user: How do I use Render Operators in Blender? Include parameters, examples, warnings and best practices.

assistant: # Render Operators

bpy.ops.render.color_management_white_balance_preset_add(*\**, *name=''*, *remove_name=False*, *remove_active=False*)
:   Add or remove a white balance preset

    Parameters:
    :   - **name** (*string**,* *(**optional**,* *never None**)*) – Name, Name of the preset, used to make the path name
        - **remove_name** (*boolean**,* *(**optional**)*) – remove_name
        - **remove_active** (*boolean**,* *(**optional**)*) – remove_active

    File:
    :   [startup/bl_operators/presets.py:119](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/presets.py#L119)

bpy.ops.render.cycles_integrator_preset_add(*\**, *name=''*, *remove_name=False*, *remove_active=False*)
:   Add an Integrator Preset

    Parameters:
    :   - **name** (*string**,* *(**optional**,* *never None**)*) – Name, Name of the preset, used to make the path name
        - **remove_name** (*boolean**,* *(**optional**)*) – remove_name
        - **remove_active** (*boolean**,* *(**optional**)*) – remove_active

    File:
    :   [startup/bl_operators/presets.py:119](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/presets.py#L119)

bpy.ops.render.cycles_performance_preset_add(*\**, *name=''*, *remove_name=False*, *remove_active=False*)
:   Add an Performance Preset

    Parameters:
    :   - **name** (*string**,* *(**optional**,* *never None**)*) – Name, Name of the preset, used to make the path name
        - **remove_name** (*boolean**,* *(**optional**)*) – remove_name
        - **remove_active** (*boolean**,* *(**optional**)*) – remove_active

    File:
    :   [startup/bl_operators/presets.py:119](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/presets.py#L119)

bpy.ops.render.cycles_sampling_preset_add(*\**, *name=''*, *remove_name=False*, *remove_active=False*)
:   Add a Sampling Preset

    Parameters:
    :   - **name** (*string**,* *(**optional**,* *never None**)*) – Name, Name of the preset, used to make the path name
        - **remove_name** (*boolean**,* *(**optional**)*) – remove_name
        - **remove_active** (*boolean**,* *(**optional**)*) – remove_active

    File:
    :   [startup/bl_operators/presets.py:119](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/presets.py#L119)

bpy.ops.render.cycles_viewport_sampling_preset_add(*\**, *name=''*, *remove_name=False*, *remove_active=False*)
:   Add a Viewport Sampling Preset

    Parameters:
    :   - **name** (*string**,* *(**optional**,* *never None**)*) – Name, Name of the preset, used to make the path name
        - **remove_name** (*boolean**,* *(**optional**)*) – remove_name
        - **remove_active** (*boolean**,* *(**optional**)*) – remove_active

    File:
    :   [startup/bl_operators/presets.py:119](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/presets.py#L119)

bpy.ops.render.eevee_raytracing_preset_add(*\**, *name=''*, *remove_name=False*, *remove_active=False*)
:   Add or remove an EEVEE ray-tracing preset

    Parameters:
    :   - **name** (*string**,* *(**optional**,* *never None**)*) – Name, Name of the preset, used to make the path name
        - **remove_name** (*boolean**,* *(**optional**)*) – remove_name
        - **remove_active** (*boolean**,* *(**optional**)*) – remove_active

    File:
    :   [startup/bl_operators/presets.py:119](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/presets.py#L119)

bpy.ops.render.opengl(*\**, *animation=False*, *render_keyed_only=False*, *sequencer=False*, *write_still=False*, *view_context=True*)
:   Take a snapshot of the active viewport

    Parameters:
    :   - **animation** (*boolean**,* *(**optional**)*) – Animation, Render files from the animation range of this scene
        - **render_keyed_only** (*boolean**,* *(**optional**)*) – Render Keyframes Only, Render only those frames where selected objects have a key in their animation data. Only used when rendering animation
        - **sequencer** (*boolean**,* *(**optional**)*) – Sequencer, Render using the sequencer’s OpenGL display
        - **write_still** (*boolean**,* *(**optional**)*) – Write Image, Save the rendered image to the output path (used only when animation is disabled)
        - **view_context** (*boolean**,* *(**optional**)*) – View Context, Use the current 3D view for rendering, else use scene settings

bpy.ops.render.play_rendered_anim()
:   Play back rendered frames/movies using an external player

    File:
    :   [startup/bl_operators/screen_play_rendered_anim.py:87](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/screen_play_rendered_anim.py#L87)

bpy.ops.render.preset_add(*\**, *name=''*, *remove_name=False*, *remove_active=False*)
:   Add or remove a Render Preset

    Parameters:
    :   - **name** (*string**,* *(**optional**,* *never None**)*) – Name, Name of the preset, used to make the path name
        - **remove_name** (*boolean**,* *(**optional**)*) – remove_name
        - **remove_active** (*boolean**,* *(**optional**)*) – remove_active

    File:
    :   [startup/bl_operators/presets.py:119](https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_operators/presets.py#L119)

bpy.ops.render.render(*\**, *animation=False*, *write_still=False*, *use_viewport=False*, *use_sequencer_scene=False*, *layer=''*, *scene=''*, *frame_start=0*, *frame_end=0*)
:   Undocumented, consider [contributing](https://developer.blender.org/).

    Parameters:
    :   - **animation** (*boolean**,* *(**optional**)*) – Animation, Render files from the animation range of this scene
        - **write_still** (*boolean**,* *(**optional**)*) – Write Image, Save the rendered image to the output path (used only when animation is disabled)
        - **use_viewport** (*boolean**,* *(**optional**)*) – Use 3D Viewport, When inside a 3D viewport, use layers and camera of the viewport
        - **use_sequencer_scene** (*boolean**,* *(**optional**)*) – Use Sequencer Scene, Render the sequencer scene instead of the active scene
        - **layer** (*string**,* *(**optional**,* *never None**)*) – Render Layer, Single render layer to re-render (used only when animation is disabled)
        - **scene** (*string**,* *(**optional**,* *never None**)*) – Scene, Scene to render, current scene if not specified
        - **frame_start** (*int in* *[**-inf**,* *inf**]**,* *(**optional**)*) – Start Frame, Frame to start rendering animation at. If not specified, the scene start frame will be assumed. This should only be specified if doing an animation render
        - **frame_end** (*int in* *[**-inf**,* *inf**]**,* *(**optional**)*) – End Frame, Frame to end rendering animation at. If not specified, the scene end frame will be assumed. This should only be specified if doing an animation render

bpy.ops.render.shutter_curve_preset(*\**, *shape='SMOOTH'*)
:   Set shutter curve

    Parameters:
    :   **shape** (enum in [`'SHARP'`, `'SMOOTH'`, `'MAX'`, `'LINE'`, `'ROUND'`, `'ROOT'`], (optional)) – Mode

bpy.ops.render.view_cancel()
:   Cancel show render view

bpy.ops.render.view_show()
:   Toggle show render view