LayerCollection(bpy_struct)

base class — bpy_struct

class bpy.types.LayerCollection(bpy_struct)

Layer collection

children

Layer collection children (default None, readonly)

Type:

bpy_prop_collection[LayerCollection]

collection

Collection this layer collection is wrapping (readonly, never None)

Type:

Collection

exclude

Exclude from view layer (default False)

Type:

bool

hide_viewport

Temporarily hide in viewport (default False)

Type:

bool

holdout

Mask out objects in collection from view layer (default False)

Type:

bool

indirect_only

Objects in collection only contribute indirectly (through shadows and reflections) in the view layer (default False)

Type:

bool

is_visible

Whether this collection is visible for the view layer, take into account the collection parent (default False, readonly)

Type:

bool

name

Name of this layer collection (same as its collection one) (default “”, readonly, never None)

Type:

str

visible_get()

Whether this collection is visible, take into account the collection parent and the viewport

Return type:

bool

has_objects()
Return type:

bool

has_selected_objects(view_layer)
Parameters:

view_layer (ViewLayer) – View layer the layer collection belongs to

Return type:

bool

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:

id (str) – The RNA type identifier.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:

id (str) – The RNA type identifier.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References