# Select Layer x tile placement

**URL:** <https://discourse.mapeditor.org/t/select-layer-x-tile-placement/398>\
**Category:** Questions\
**Created:** [March 17, 2015, 6:09am UTC](https://discourse.mapeditor.org/t/select-layer-x-tile-placement/398 "2015-03-17T06:09:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![googa8](https://avatars.discourse-cdn.com/v4/letter/g/ac8455/32.png) [@googa8](https://discourse.mapeditor.org/u/googa8)\
**Post date:** [March 17, 2015, 6:09am UTC](https://discourse.mapeditor.org/t/select-layer-x-tile-placement/398/1 "2015-03-17T06:09:26Z")

</div>

Hi, I would like to know if there’s a way to automatically select the right layer when selecting a tile from the brush window.  
What’s the best way to handle tile x layer restriction?  
Thanks.

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [March 17, 2015, 7:11pm UTC](https://discourse.mapeditor.org/t/select-layer-x-tile-placement/398/2 "2015-03-17T19:11:08Z")

</div>

There is no convenient way for handling this case yet. You can subscribe to the following issue to get notified when this ever gets implemented:

> <https://github.com/bjorn/tiled/issues/153>
>
> Cocos2d only allows one tileset per tile layer. It is very easy to accidentally click the tile stamp tool on the...

My currently idea is that I should make Tiled scriptable, since it would solve many fringe feature requests. In this case, it would then be trivial to write a script that automatically selects the right tileset when the selected layer changes, or the right layer when the selected tiles change. As well as a script that would validate a map to make sure only one tileset per layer is used.

Unfortunately this is quite a large project so it will take a bit to implement. You can help by [becoming a patron](https://www.patreon.com/bjorn) so that I can afford to spend more time on Tiled. Even just $1/month is very appreciated!
