Outliner Operators

bpy.ops.outliner.action_set(action='')

Change the active action used

Parameters:action (enum in [], (optional)) – Action
bpy.ops.outliner.animdata_operation(type='SET_ACT')

Undocumented (contribute)

Parameters:type (enum in [‘SET_ACT’, ‘CLEAR_ACT’, ‘REFRESH_DRIVERS’, ‘CLEAR_DRIVERS’], (optional)) – Animation Operation
bpy.ops.outliner.data_operation(type='SELECT')

Undocumented (contribute)

Parameters:type (enum in [‘SELECT’, ‘DESELECT’, ‘HIDE’, ‘UNHIDE’, ‘SELECT_LINKED’], (optional)) – Data Operation
bpy.ops.outliner.drivers_add_selected()

Add drivers to selected items

bpy.ops.outliner.drivers_delete_selected()

Delete drivers assigned to selected items

bpy.ops.outliner.expanded_toggle()

Expand/Collapse all items

bpy.ops.outliner.group_operation(type='UNLINK')

Undocumented (contribute)

Parameters:type (enum in [‘UNLINK’, ‘LOCAL’, ‘LINK’, ‘INSTANCE’, ‘TOGVIS’, ‘TOGSEL’, ‘TOGREN’, ‘RENAME’], (optional)) – Group Operation
bpy.ops.outliner.id_operation(type='UNLINK')

Undocumented (contribute)

Parameters:type (enum in [‘UNLINK’, ‘LOCAL’, ‘SINGLE’, ‘ADD_FAKE’, ‘CLEAR_FAKE’, ‘RENAME’, ‘SELECT_LINKED’], (optional)) –

ID data Operation

  • UNLINK Unlink.
  • LOCAL Make Local.
  • SINGLE Make Single User.
  • ADD_FAKE Add Fake User, Ensure datablock gets saved even if it isn’t in use (e.g. for motion and material libraries).
  • CLEAR_FAKE Clear Fake User.
  • RENAME Rename.
  • SELECT_LINKED Select Linked.
bpy.ops.outliner.item_activate(extend=True)

Handle mouse clicks to activate/select items

Parameters:extend (boolean, (optional)) – Extend, Extend selection for activation
bpy.ops.outliner.item_openclose(all=True)

Toggle whether item under cursor is enabled or closed

Parameters:all (boolean, (optional)) – All, Close or open all items
bpy.ops.outliner.item_rename()

Rename item under cursor

bpy.ops.outliner.keyingset_add_selected()

Add selected items (blue-gray rows) to active Keying Set

bpy.ops.outliner.keyingset_remove_selected()

Remove selected items (blue-gray rows) from active Keying Set

bpy.ops.outliner.material_drop(object="Object", material="Material")

Drag material to object in Outliner

Parameters:
  • object (string, (optional, never None)) – Object, Target Object
  • material (string, (optional, never None)) – Material, Target Material
bpy.ops.outliner.object_operation(type='SELECT')

Undocumented (contribute)

Parameters:type (enum in [‘SELECT’, ‘DESELECT’, ‘DELETE’, ‘TOGVIS’, ‘TOGSEL’, ‘TOGREN’, ‘RENAME’], (optional)) – Object Operation
bpy.ops.outliner.operation()

Context menu for item operations

bpy.ops.outliner.parent_clear(dragged_obj="Object", type='CLEAR')

Drag to clear parent in Outliner

Parameters:
  • dragged_obj (string, (optional, never None)) – Child, Child Object
  • type (enum in [‘CLEAR’, ‘CLEAR_KEEP_TRANSFORM’, ‘CLEAR_INVERSE’], (optional)) – Type
bpy.ops.outliner.parent_drop(child="Object", parent="Object", type='OBJECT')

Drag to parent in Outliner

Parameters:
  • child (string, (optional, never None)) – Child, Child Object
  • parent (string, (optional, never None)) – Parent, Parent Object
  • type (enum in [‘OBJECT’, ‘ARMATURE’, ‘ARMATURE_NAME’, ‘ARMATURE_AUTO’, ‘ARMATURE_ENVELOPE’, ‘BONE’, ‘CURVE’, ‘FOLLOW’, ‘PATH_CONST’, ‘LATTICE’, ‘VERTEX’, ‘TRIA’], (optional)) – Type
bpy.ops.outliner.renderability_toggle()

Toggle the renderability of selected items

bpy.ops.outliner.scene_drop(object="Object", scene="Scene")

Drag object to scene in Outliner

Parameters:
  • object (string, (optional, never None)) – Object, Target Object
  • scene (string, (optional, never None)) – Scene, Target Scene
bpy.ops.outliner.scroll_page(up=False)

Scroll page up or down

Parameters:up (boolean, (optional)) – Up, Scroll up one page
bpy.ops.outliner.select_border(gesture_mode=0, xmin=0, xmax=0, ymin=0, ymax=0)

Use box selection to select tree elements

Parameters:
  • gesture_mode (int in [-inf, inf], (optional)) – Gesture Mode
  • xmin (int in [-inf, inf], (optional)) – X Min
  • xmax (int in [-inf, inf], (optional)) – X Max
  • ymin (int in [-inf, inf], (optional)) – Y Min
  • ymax (int in [-inf, inf], (optional)) – Y Max
bpy.ops.outliner.selectability_toggle()

Toggle the selectability

bpy.ops.outliner.selected_toggle()

Toggle the Outliner selection of items

bpy.ops.outliner.show_active()

Adjust the view so that the active Object is shown centered

bpy.ops.outliner.show_hierarchy()

Open all object entries and close all others

bpy.ops.outliner.show_one_level(open=True)

Expand/collapse all entries by one level

Parameters:open (boolean, (optional)) – Open, Expand all entries one level deep
bpy.ops.outliner.visibility_toggle()

Toggle the visibility of selected items

Previous topic

Object Operators

Next topic

Paint Operators