Scene Operators

bpy.ops.scene.delete()

Delete active scene

bpy.ops.scene.freestyle_add_edge_marks_to_keying_set()

Add the data paths to the Freestyle Edge Mark property of selected edges to the active keying set

File:startup/bl_operators/freestyle.py:104
bpy.ops.scene.freestyle_add_face_marks_to_keying_set()

Add the data paths to the Freestyle Face Mark property of selected polygons to the active keying set

File:startup/bl_operators/freestyle.py:135
bpy.ops.scene.freestyle_alpha_modifier_add(type='ALONG_STROKE')

Add an alpha transparency modifier to the line style associated with the active lineset

Parameters:type (enum in [‘ALONG_STROKE’, ‘CREASE_ANGLE’, ‘CURVATURE_3D’, ‘DISTANCE_FROM_CAMERA’, ‘DISTANCE_FROM_OBJECT’, ‘MATERIAL’, ‘NOISE’, ‘TANGENT’], (optional)) – Type
bpy.ops.scene.freestyle_color_modifier_add(type='ALONG_STROKE')

Add a line color modifier to the line style associated with the active lineset

Parameters:type (enum in [‘ALONG_STROKE’, ‘CREASE_ANGLE’, ‘CURVATURE_3D’, ‘DISTANCE_FROM_CAMERA’, ‘DISTANCE_FROM_OBJECT’, ‘MATERIAL’, ‘NOISE’, ‘TANGENT’], (optional)) – Type
bpy.ops.scene.freestyle_fill_range_by_selection(type='COLOR', name="")

Fill the Range Min/Max entries by the min/max distance between selected mesh objects and the source object

Parameters:
  • type (enum in [‘COLOR’, ‘ALPHA’, ‘THICKNESS’], (optional)) –

    Type, Type of the modifier to work on

    • COLOR Color, Color modifier type.
    • ALPHA Alpha, Alpha modifier type.
    • THICKNESS Thickness, Thickness modifier type.
  • name (string, (optional, never None)) – Name, Name of the modifier to work on
File:

startup/bl_operators/freestyle.py:51

bpy.ops.scene.freestyle_geometry_modifier_add(type='2D_OFFSET')

Add a stroke geometry modifier to the line style associated with the active lineset

Parameters:type (enum in [‘2D_OFFSET’, ‘2D_TRANSFORM’, ‘BACKBONE_STRETCHER’, ‘BEZIER_CURVE’, ‘BLUEPRINT’, ‘GUIDING_LINES’, ‘PERLIN_NOISE_1D’, ‘PERLIN_NOISE_2D’, ‘POLYGONIZATION’, ‘SAMPLING’, ‘SIMPLIFICATION’, ‘SINUS_DISPLACEMENT’, ‘SPATIAL_NOISE’, ‘TIP_REMOVER’], (optional)) – Type
bpy.ops.scene.freestyle_lineset_add()

Add a line set into the list of line sets

bpy.ops.scene.freestyle_lineset_copy()

Copy the active line set to a buffer

bpy.ops.scene.freestyle_lineset_move(direction='UP')

Change the position of the active line set within the list of line sets

Parameters:direction (enum in [‘UP’, ‘DOWN’], (optional)) – Direction, Direction to move, UP or DOWN
bpy.ops.scene.freestyle_lineset_paste()

Paste the buffer content to the active line set

bpy.ops.scene.freestyle_lineset_remove()

Remove the active line set from the list of line sets

bpy.ops.scene.freestyle_linestyle_new()

Create a new line style, reusable by multiple line sets

bpy.ops.scene.freestyle_modifier_copy()

Duplicate the modifier within the list of modifiers

bpy.ops.scene.freestyle_modifier_move(direction='UP')

Move the modifier within the list of modifiers

Parameters:direction (enum in [‘UP’, ‘DOWN’], (optional)) – Direction, Direction to move, UP or DOWN
bpy.ops.scene.freestyle_modifier_remove()

Remove the modifier from the list of modifiers

bpy.ops.scene.freestyle_module_add()

Add a style module into the list of modules

bpy.ops.scene.freestyle_module_move(direction='UP')

Change the position of the style module within in the list of style modules

Parameters:direction (enum in [‘UP’, ‘DOWN’], (optional)) – Direction, Direction to move, UP or DOWN
bpy.ops.scene.freestyle_module_open(filepath="", make_internal=True)

Open a style module file

Parameters:
  • filepath (string, (optional, never None)) – filepath
  • make_internal (boolean, (optional)) – Make internal, Make module file internal after loading
File:

startup/bl_operators/freestyle.py:179

bpy.ops.scene.freestyle_module_remove()

Remove the style module from the stack

bpy.ops.scene.freestyle_stroke_material_create()

Create Freestyle stroke material for testing

bpy.ops.scene.freestyle_thickness_modifier_add(type='ALONG_STROKE')

Add a line thickness modifier to the line style associated with the active lineset

Parameters:type (enum in [‘ALONG_STROKE’, ‘CALLIGRAPHY’, ‘CREASE_ANGLE’, ‘CURVATURE_3D’, ‘DISTANCE_FROM_CAMERA’, ‘DISTANCE_FROM_OBJECT’, ‘MATERIAL’, ‘NOISE’, ‘TANGENT’], (optional)) – Type
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