Hey
indexofrefraction,
thanks again for your help.
The commands from the 2011 thread don't work, I did some tests.
I managed to find a post on the forums that gave me the idea to add a custom attribute to the automatically generated layers of the thumbnails, and then test for it and delete if true.
I figured out how to test it with the console. I made it trace the values of layer.count and scene.count before and after I load a new xml.
After that I made it even trace all the names of the layers on the screen.
I think I managed to delete the layers that are generated with skin_addthumbs using my custom attribute.
|
Source code
|
1
2
3
4
|
for(set(i,0), i LT layer.count, inc(i),
if(layer[get(i)].category==thumbs,
removelayer(layer[get(i)].name,removechildren); )
);
|
This lowers the count of layer.count, but the thumbnails are still there. I tried to delete them from the last index layer, because in the documentation it says:
Not sure if this is relevant to me. Nevertheless it didn't work.
Now I will try and inspect all layers on screen and see what I'm not deleting.
I will keep you updated.
Many thanks,
Martin