user: Show practical ways to work with Bpy.Ops.Scene in a Blender add-on or script – include code.

assistant: 6 bpy.ops.scene. gpencil_brush_preset_add ( * , name = '' , remove_name = False , remove_active = False ) ¶ Add or remove Grease Pencil brush 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 bpy.ops.scene. gpencil_material_preset_add ( * , name = '' , remove_name = False , remove_active = False ) ¶ Add or remove Grease Pencil material 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 bpy.ops.scene. new ( * , type = 'NEW' ) ¶ Add new scene by type Parameters : type (enum in [ 'NEW' , 'EMPTY' , 'LINK_COPY' , 'FULL_COPY' ], (optional)) – Type NEW New – Add a new, empty scene with default settings. EMPTY Copy Settings – Add a new, empty scene, and copy settings from the current scene. LINK_COPY Linked Copy – Link in the collections from the current scene (shallow copy). FULL_COPY Full Copy – Make a full copy of the current scene. bpy.ops.scene. new_sequencer ( * , type = 'NEW' ) ¶ Add new scene by type in the sequence editor and assign to active strip Parameters : type (enum in [ 'NEW' , 'EMPTY' , 'LINK_COPY' , 'FULL_COPY' ], (optional)) – Type NEW New – Add a new, empty scene with default settings. EMPTY Copy Settings – Add a new, empty scene, and copy settings from the current scene. LINK_COPY Linked Copy – Link in the collections from the current scene (shallow copy). FULL_COPY Full Copy – Make a full copy of the current scene. bpy.ops.scene. new_sequencer_scene ( * , type = 'NEW' ) ¶ Add new scene to be used by the sequencer Parameters : type (enum in [ 'NEW' , 'EMPTY' , 'LINK_COPY' , 'FULL_COPY' ], (optional)) – Type NEW New – Add a new, empty scene with default settings. EMPTY Copy Settings – Add a new, empty scene, and copy settings from the current scene. LINK_COPY Linked Copy – Link in the collections from the current scene (shallow copy). FULL_COPY Full Copy – Make a full copy of the current scene. bpy.ops.scene. render_view_add ( ) ¶ Add a render view bpy.ops.scene. render_view_remove ( ) ¶ Remove the selected render view bpy.ops.scene. view_layer_add ( * , type = 'NEW' ) ¶ Add a view layer Parameters : type (enum in [ 'NEW' , 'COPY' , 'EMPTY' ], (optional)) – Type NEW New – Add a new view layer. COPY Copy Settings – Copy settings of current view layer. EMPTY Blank – Add a new view layer with all collections disabled. bpy.ops.scene. view_layer_add_aov ( ) ¶ Add a Shader AOV bpy.ops.scene. view_layer_add_lightgroup ( * , name = '' ) ¶ Add a Light Group Parameters : name ( string , ( optional , never None ) ) – Name, Name of newly created lightgroup bpy.ops.scene. view_layer_add_used_lightgroups ( ) ¶ Add all used Light Groups bpy.ops.scene. view_layer_remove ( ) ¶ Remove the selected view layer bpy.ops.scene. view_layer_remove_aov ( ) ¶ Remove Active AOV bpy.ops.scene. view_layer_remove_lightgroup ( ) ¶ Remove Active Lightgroup bpy.ops.scene. view_layer_remove_unused_lightgroups ( ) ¶ Remove all unused Light Groups Next Screen Operators Previous Rigidbody Operators Copyright &#169; Blender Authors Made with Furo Report issue on this page On this page Scene Operators delete() drop_scene_asset() freestyle_add_edge_marks_to_keying_set() freestyle_add_face_marks_to_keying_set() freestyle_alpha_modifier_add() freestyle_color_modifier_add() freestyle_fill_range_by_selection() freestyle_geometry_modifier_add() freestyle_lineset_add() freestyle_lineset_copy() freestyle_lineset_move() freestyle_lineset_paste() freestyle_lineset_remove() freestyle_linestyle_new() freestyle_modifier_copy() freestyle_modifier_move() freestyle_modifier_remove() freestyle_module_add() freestyle_module_move() freestyle_module_open() freestyle_module_remove() freestyle_stroke_material_create() freestyle_thickness_modifier_add() gltf2_action_filter_refresh() gpencil_brush_preset_add() gpencil_material_preset_add() new() new_sequencer() new_sequencer_scene() render_view_add() render_view_remove() view_layer_add() view_layer_add_aov() view_layer_add_lightgroup() view_layer_add_used_lightgroups() view_layer_remove() view_layer_remove_aov() view_layer_remove_lightgroup() view_layer_remove_unused_lightgroups()