I store the layer of objects using the layer name in an external file.
However, if layers do not have unique names, restoring the info (due to layers with the same name) will go wrong.
Is there another way, besides layerdata, to get the correct layer?
I do not want to use the layerdata, because then I have to store the layerdata link.
So, basically, is there another way to distinguish layers, not using layerdata or the layer name?
I hope I make myself clear.