Some little python extension for inkscape
Copy the {inx,py}
files into $HOME/.config/inkscape/extensions/
Look the menu Extensions -> Layers
create_layer: create N
layers with a template name ({0}
is the index, base 0)
sel_to_layers: from the selection create a layer for each object using a template name ({0}
the object name, {1}
the index, base 0)