Hi,
I call my action on startup, at the end of the starup actions chain.
Here's the code:
Code
<action name="remove_thumbs">
for(set(i,0), i LT layer.count, inc(i), if(layer[get(i)].parent EQ 'skin_thumbs', trace('Layer: ',get(layer[get(i)].name)); removelayer(get(layer[get(i)].name), true); ););</action>
It lists the layers correctly, but only randomly removes about a third. It doesn't make sense.
If I call the action 4-5 times in a row it will delete most of the thumbs.
I'd appreciate some feedback.