tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Apply automap rules on all layers

Open Birmania opened this issue 12 years ago • 2 comments

Hi, (Again)

I read the entire documentation about Automapping with Tiled but I do not find the answer to my question.

Is there any way to search the input layer pattern through all layers of the map. Like having an input layer name as input_* instead of input_background.

This would be very useful for the maintenance instead of copying it as many time as number of map layers.

Best regards, Birmania

Birmania avatar May 02 '13 15:05 Birmania

To fix this we would need to look into AutoMapper::applyRule

            foreach (const QString &name, ii.names) {
                const int i = mMapWork->indexOfLayer(name, Layer::TileLayerType);

and replace indexOfLayer with a smarter comparison (e.g. a regex parser to yield all layers that match), see discussion in https://github.com/bjorn/tiled/issues/662 as well.

stefanbeller avatar May 14 '16 06:05 stefanbeller

I'd still love to see this feature!

ninjuit avatar Jun 12 '24 18:06 ninjuit