This extension converts the selected groups into Inkscape layers.
Download:
inkscape-group_to_layer-0.1.0.zip
Installation:
Simply unzip the downloaded file into the following directory:
C:\Program Files\Inkscape\share\extensions
/usr/share/inkscape/extensions
(system-wide
install) or ~/.config/inkscape/extensions
(single-user install)/Applications/Inkscape.app/Contents/Resources/extensions
Usage:
Select one or more groups and run the extension from the menu item
Extensions > Arrange > Group to Layer. The selected groups will
be converted into layers. If the selected groups contain nested
subgroups, you can increase the "Max nested group depth" setting to
cause subgroups to be converted into sublayers (up to the specified
depth).