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='CLEAR_ANIMDATA')¶ Undocumented, consider contributing.
- Parameters
type (enum in ['CLEAR_ANIMDATA', 'SET_ACT', 'CLEAR_ACT', 'REFRESH_DRIVERS', 'CLEAR_DRIVERS'], (optional)) –
Animation Operation
CLEAR_ANIMDATAClear Animation Data, Remove this animation data container.SET_ACTSet Action.CLEAR_ACTUnlink Action.REFRESH_DRIVERSRefresh Drivers.CLEAR_DRIVERSClear Drivers.
-
bpy.ops.outliner.collection_delete(hierarchy=False)¶ Delete selected collections
- Parameters
hierarchy (boolean, (optional)) – Hierarchy, Delete child objects and collections
-
bpy.ops.outliner.collection_disable()¶ Disable viewport drawing in the view layers
-
bpy.ops.outliner.collection_disable_render()¶ Do not render this collection
-
bpy.ops.outliner.collection_drop()¶ Drag to move to collection in Outliner
-
bpy.ops.outliner.collection_duplicate()¶ Recursively duplicate the collection, all its children, objects and object data
-
bpy.ops.outliner.collection_duplicate_linked()¶ Recursively duplicate the collection, all its children and objects, with linked object data
-
bpy.ops.outliner.collection_enable()¶ Enable viewport drawing in the view layers
-
bpy.ops.outliner.collection_enable_render()¶ Render the collection
-
bpy.ops.outliner.collection_exclude_clear()¶ Include collection in the active view layer
-
bpy.ops.outliner.collection_exclude_set()¶ Exclude collection from the active view layer
-
bpy.ops.outliner.collection_hide()¶ Hide the collection in this view layer
-
bpy.ops.outliner.collection_hide_inside()¶ Hide all the objects and collections inside the collection
-
bpy.ops.outliner.collection_holdout_clear()¶ Clear masking of collection in the active view layer
-
bpy.ops.outliner.collection_holdout_set()¶ Mask collection in the active view layer
-
bpy.ops.outliner.collection_indirect_only_clear()¶ Clear collection contributing only indirectly in the view layer
-
bpy.ops.outliner.collection_indirect_only_set()¶ Set collection to only contribute indirectly (through shadows and reflections) in the view layer
-
bpy.ops.outliner.collection_instance()¶ Instance selected collections to active scene
-
bpy.ops.outliner.collection_isolate(extend=False)¶ Hide all but this collection and its parents
- Parameters
extend (boolean, (optional)) – Extend, Extend current visible collections
-
bpy.ops.outliner.collection_link()¶ Link selected collections to active scene
-
bpy.ops.outliner.collection_new(nested=True)¶ Add a new collection inside selected collection
- Parameters
nested (boolean, (optional)) – Nested, Add as child of selected collection
-
bpy.ops.outliner.collection_objects_deselect()¶ Deselect objects in collection
-
bpy.ops.outliner.collection_objects_select()¶ Select objects in collection
-
bpy.ops.outliner.collection_show()¶ Show the collection in this view layer
-
bpy.ops.outliner.collection_show_inside()¶ Show all the objects and collections inside the collection
-
bpy.ops.outliner.constraint_operation(type='ENABLE')¶ Undocumented, consider contributing.
- Parameters
type (enum in ['ENABLE', 'DISABLE', 'DELETE'], (optional)) – Constraint Operation
-
bpy.ops.outliner.data_operation(type='SELECT')¶ Undocumented, consider contributing.
- 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.hide()¶ Hide selected objects and collections
-
bpy.ops.outliner.highlight_update()¶ Update the item highlight based on the current mouse position
-
bpy.ops.outliner.id_copy()¶ Selected data-blocks are copied to the clipboard
-
bpy.ops.outliner.id_delete()¶ Delete the ID under cursor
-
bpy.ops.outliner.id_operation(type='UNLINK')¶ Undocumented, consider contributing.
- Parameters
type (enum in ['UNLINK', 'LOCAL', 'OVERRIDE_LIBRARY', 'SINGLE', 'DELETE', 'REMAP', 'COPY', 'PASTE', 'ADD_FAKE', 'CLEAR_FAKE', 'RENAME', 'SELECT_LINKED'], (optional)) –
ID data Operation
UNLINKUnlink.LOCALMake Local.OVERRIDE_LIBRARYAdd Library Override, Add a local override of this linked data-block.SINGLEMake Single User.DELETEDelete.REMAPRemap Users, Make all users of selected data-blocks to use instead current (clicked) one.COPYCopy.PASTEPaste.ADD_FAKEAdd Fake User, Ensure data-block gets saved even if it isn’t in use (e.g. for motion and material libraries).CLEAR_FAKEClear Fake User.RENAMERename.SELECT_LINKEDSelect Linked.
-
bpy.ops.outliner.id_paste()¶ Data-blocks from the clipboard are pasted
-
bpy.ops.outliner.id_remap(id_type='OBJECT', old_id='', new_id='')¶ Undocumented, consider contributing.
- Parameters
id_type (enum in ['ACTION', 'ARMATURE', 'BRUSH', 'CAMERA', 'CACHEFILE', 'CURVE', 'FONT', 'GREASEPENCIL', 'COLLECTION', 'IMAGE', 'KEY', 'LIGHT', 'LIBRARY', 'LINESTYLE', 'LATTICE', 'MASK', 'MATERIAL', 'META', 'MESH', 'MOVIECLIP', 'NODETREE', 'OBJECT', 'PAINTCURVE', 'PALETTE', 'PARTICLE', 'LIGHT_PROBE', 'SCENE', 'SOUND', 'SPEAKER', 'TEXT', 'TEXTURE', 'VOLUME', 'WINDOWMANAGER', 'WORLD', 'WORKSPACE'], (optional)) – ID Type
old_id (enum in [], (optional)) – Old ID, Old ID to replace
new_id (enum in [], (optional)) – New ID, New ID to remap all selected IDs’ users to
-
bpy.ops.outliner.item_activate(extend=True, extend_range=False, deselect_all=False)¶ Handle mouse clicks to select and activate items
- Parameters
extend (boolean, (optional)) – Extend, Extend selection for activation
extend_range (boolean, (optional)) – Extend Range, Select a range from active element
deselect_all (boolean, (optional)) – Deselect On Nothing, Deselect all when nothing under the cursor
-
bpy.ops.outliner.item_drag_drop()¶ Drag and drop element to another place
-
bpy.ops.outliner.item_openclose(all=False)¶ 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 the active element
-
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.lib_operation(type='RENAME')¶ Undocumented, consider contributing.
- Parameters
type (enum in ['RENAME', 'DELETE', 'RELOCATE', 'RELOAD'], (optional)) –
Library Operation
RENAMERename.DELETEDelete, Delete this library and all its item from Blender - WARNING: no undo.RELOCATERelocate, Select a new path for this library, and reload all its data.RELOADReload, Reload all data from this library.
-
bpy.ops.outliner.lib_relocate()¶ Relocate the library under cursor
-
bpy.ops.outliner.material_drop()¶ Drag material to object in Outliner
-
bpy.ops.outliner.modifier_operation(type='TOGVIS')¶ Undocumented, consider contributing.
- Parameters
type (enum in ['TOGVIS', 'TOGREN', 'DELETE'], (optional)) – Modifier Operation
-
bpy.ops.outliner.object_operation(type='SELECT')¶ Undocumented, consider contributing.
- Parameters
type (enum in ['SELECT', 'DESELECT', 'SELECT_HIERARCHY', 'DELETE', 'DELETE_HIERARCHY', 'REMAP', 'RENAME', 'OBJECT_MODE_ENTER', 'OBJECT_MODE_EXIT'], (optional)) –
Object Operation
SELECTSelect.DESELECTDeselect.SELECT_HIERARCHYSelect Hierarchy.DELETEDelete.DELETE_HIERARCHYDelete Hierarchy.REMAPRemap Users, Make all users of selected data-blocks to use instead a new chosen one.RENAMERename.OBJECT_MODE_ENTEREnter Mode.OBJECT_MODE_EXITExit Mode.
-
bpy.ops.outliner.operation()¶ Context menu for item operations
-
bpy.ops.outliner.orphans_purge(num_deleted=0)¶ Clear all orphaned data-blocks without any users from the file
-
bpy.ops.outliner.parent_clear()¶ Drag to clear parent in Outliner
-
bpy.ops.outliner.parent_drop()¶ Drag to parent in Outliner
-
bpy.ops.outliner.scene_drop()¶ Drag object to scene in Outliner
-
bpy.ops.outliner.scene_operation(type='DELETE')¶ Context menu for scene operations
- Parameters
type (enum in ['DELETE'], (optional)) – Scene Operation
-
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_all(action='TOGGLE')¶ Toggle the Outliner selection of items
- Parameters
action (enum in ['TOGGLE', 'SELECT', 'DESELECT', 'INVERT'], (optional)) –
Action, Selection action to execute
TOGGLEToggle, Toggle selection for all elements.SELECTSelect, Select all elements.DESELECTDeselect, Deselect all elements.INVERTInvert, Invert selection of all elements.
-
bpy.ops.outliner.select_box(tweak=False, xmin=0, xmax=0, ymin=0, ymax=0, wait_for_input=True, mode='SET')¶ Use box selection to select tree elements
- Parameters
tweak (boolean, (optional)) – Tweak, Tweak gesture from empty space for box selection
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
wait_for_input (boolean, (optional)) – Wait for Input
mode (enum in ['SET', 'ADD', 'SUB'], (optional)) –
Mode
SETSet, Set a new selection.ADDExtend, Extend existing selection.SUBSubtract, Subtract existing selection.
-
bpy.ops.outliner.select_walk(direction='UP', extend=False, toggle_all=False)¶ Use walk navigation to select tree elements
- Parameters
direction (enum in ['UP', 'DOWN', 'LEFT', 'RIGHT'], (optional)) – Walk Direction, Select/Deselect element in this direction
extend (boolean, (optional)) – Extend, Extend selection on walk
toggle_all (boolean, (optional)) – Toggle All, Toggle open/close hierarchy
-
bpy.ops.outliner.show_active()¶ Open up the tree and 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.unhide_all()¶ Unhide all objects and collections