user: Describe GreasePencilv3LayerGroup(bpy_struct) from the Blender manual or Python API, including usage steps and snippets.

assistant: # GreasePencilv3LayerGroup(bpy_struct)

base class — [`bpy_struct`](bpy.types.bpy_struct.html#bpy.types.bpy_struct "bpy.types.bpy_struct")

*class* bpy.types.GreasePencilv3LayerGroup(*bpy_struct*)
:   Collection of Grease Pencil layers

    active
    :   Active Grease Pencil layer group

        Type:
        :   [`GreasePencilLayerGroup`](bpy.types.GreasePencilLayerGroup.html#bpy.types.GreasePencilLayerGroup "bpy.types.GreasePencilLayerGroup")

    new(*name*, *\**, *parent_group=None*)
    :   Add a new Grease Pencil layer group

        Parameters:
        :   - **name** (*string**,* *(**never None**)*) – Name, Name of the layer group
            - **parent_group** ([`GreasePencilLayerGroup`](bpy.types.GreasePencilLayerGroup.html#bpy.types.GreasePencilLayerGroup "bpy.types.GreasePencilLayerGroup"), (optional)) – The parent layer group the new group will be created in (use None for the main stack)

        Returns:
        :   The newly created layer group

        Return type:
        :   [`GreasePencilLayerGroup`](bpy.types.GreasePencilLayerGroup.html#bpy.types.GreasePencilLayerGroup "bpy.types.GreasePencilLayerGroup")

    remove(*layer_group*, *\**, *keep_children=False*)
    :   Remove a new Grease Pencil layer group

        Parameters:
        :   - **layer_group** ([`GreasePencilLayerGroup`](bpy.types.GreasePencilLayerGroup.html#bpy.types.GreasePencilLayerGroup "bpy.types.GreasePencilLayerGroup"), (never None)) – The layer group to remove
            - **keep_children** (*boolean**,* *(**optional**)*) – Keep the children nodes of the group and only delete the group itself

    move(*layer_group*, *type*)
    :   Move a layer group in the parent layer group or main stack

        Parameters:
        :   - **layer_group** ([`GreasePencilLayerGroup`](bpy.types.GreasePencilLayerGroup.html#bpy.types.GreasePencilLayerGroup "bpy.types.GreasePencilLayerGroup"), (never None)) – The layer group to move
            - **type** (enum in [`'DOWN'`, `'UP'`]) – Direction of movement

    move_top(*layer_group*)
    :   Move a layer group to the top of the parent layer group or main stack

        Parameters:
        :   **layer_group** ([`GreasePencilLayerGroup`](bpy.types.GreasePencilLayerGroup.html#bpy.types.GreasePencilLayerGroup "bpy.types.GreasePencilLayerGroup"), (never None)) – The layer group to move

    move_bottom(*layer_group*)
    :   Move a layer group to the bottom of the parent layer group or main stack

        Parameters:
        :   **layer_group** ([`GreasePencilLayerGroup`](bpy.types.GreasePencilLayerGroup.html#bpy.types.GreasePencilLayerGroup "bpy.types.GreasePencilLayerGroup"), (never None)) – The layer group to move

    move_to_layer_group(*layer_group*, *parent_group*)
    :   Move a layer group into a parent layer group

        Parameters:
        :   - **layer_group** ([`GreasePencilLayerGroup`](bpy.types.GreasePencilLayerGroup.html#bpy.types.GreasePencilLayerGroup "bpy.types.GreasePencilLayerGroup"), (never None)) – The layer group to move
            - **parent_group** ([`GreasePencilLayerGroup`](bpy.types.GreasePencilLayerGroup.html#bpy.types.GreasePencilLayerGroup "bpy.types.GreasePencilLayerGroup")) – The parent layer group the layer group will be moved into (use None for the main stack)

    *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`](bpy.types.Struct.html#bpy.types.Struct "bpy.types.Struct") subclass

    *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