Scene Operators

bpy.ops.scene.delete()

Delete active scene

bpy.ops.scene.new(type='NEW')

Add new scene by type

Parameters:type (enum in ['NEW', 'EMPTY', 'LINK_OBJECTS', 'LINK_OBJECT_DATA', 'FULL_COPY'], (optional)) –

Type

  • NEW New, Add new scene.
  • EMPTY Copy Settings, Make a copy without any objects.
  • LINK_OBJECTS Link Objects, Link to the objects from the current scene.
  • LINK_OBJECT_DATA Link Object Data, Copy objects linked to data from the current scene.
  • FULL_COPY Full Copy, Make a full copy of the current scene.
bpy.ops.scene.render_layer_add()

Add a render layer

bpy.ops.scene.render_layer_remove()

Remove the selected render layer

bpy.ops.scene.render_view_add()

Add a render view

bpy.ops.scene.render_view_remove()

Remove the selected render view

bpy.ops.scene.units_length_preset_add(name="", remove_active=False)

Add or remove length units preset

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

startup/bl_operators/presets.py:71