# Eyedropper tool?

**URL:** <https://discourse.mapeditor.org/t/eyedropper-tool/755>\
**Category:** Questions\
**Created:** [September 9, 2015, 6:31am UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755 "2015-09-09T06:31:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hop](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@Hop](https://discourse.mapeditor.org/u/Hop)\
**Post date:** [September 9, 2015, 6:31am UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/1 "2015-09-09T06:31:44Z")

</div>

Does Tiled have the equivalent of the Photoshop Eyedropper tool?

When this tools is selected in Photoshop, clicking on a pixel in the image will select that pixel’s colour as the new foreground colour. In Tiled when the eyedropper is selected and a tile is clicked in the view, that tile would be selected in the Tilesets window. This would allow that tile’s properties to be easily inspected or it to be used as a stamp etc. I would find this extremely useful for debugging too.

My current workflow is 1. Select correct layer 2. In the map view, hover the mouse over tile of interest and make mental note of the tile ID in [square brackets] at the bottom left of the screen tile 3. Select a random tile in the tilesets pane and use cursors until the ID in the Properties pane matches the number I noted. 4. Do what I want to do with the tile. This is a little long-winded and it’d be great to have a short-cut.

Thanks

---

<div class="post-metadata">

**Author:** ![encukou](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/encukou/32/1832_2.png) [@encukou](https://discourse.mapeditor.org/u/encukou)\
**Post date:** [September 9, 2015, 7:04am UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/3 "2015-09-09T07:04:17Z")

</div>

Ugh, the forum’s e-mail integration ate my post 😕 Let’s try again.

> [@Hop](#):
>
> Does Tiled have the equivalent of the Photoshop Eyedropper tool?
> 
> When this tools is selected in Photoshop, clicking on a pixel in the image will select that pixel’s colour as the new foreground colour. In Tiled when the eyedropper is selected and a tile is clicked in the view, that tile would be selected in the Tilesets window. This would allow that tile’s properties to be easily inspected or it to be used as a stamp etc. I would find this extremely useful for debugging too.

Right-click the map to select the stamp. You can select a larger area by dragging.  
It doesn’t select the tile in Tilesets, though – I guess that’s because it wouldn’t work for multi-tile stamps.

---

<div class="post-metadata">

**Author:** ![Hop](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@Hop](https://discourse.mapeditor.org/u/Hop)\
**Post date:** [September 9, 2015, 7:22am UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/4 "2015-09-09T07:22:35Z")

</div>

Thanks for that. Perhaps this feature could be updated so that if only a single tile is selected in the map view, that tile is selected in the Tilset view?

---

<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:** [September 9, 2015, 7:46am UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/5 "2015-09-09T07:46:40Z")

</div>

> [@encukou](#):
>
> Ugh, the forum’s e-mail integration ate my post

I think it wants you to top post.rather than bottom post. It does not seem to support quoting properly.

> [@Hop](#):
>
> Thanks for that. Perhaps this feature could be updated so that if only a single tile is selected in the map view, that tile is selected in the Tilset view?

Yeah, actually I think it makes sense to do this. Related issue:

> <https://github.com/mapeditor/tiled/issues/977>
>
> Now to change the collision layer for the tile image is need to find that image …in the tileset. Sometimes it may be a problem (when the tileset contains a lot of images). But may be new context menu element will be a good feature - something like this: Rightclick on the tile object - \> Select "Show collision layer in the collision editor" -\> the collision editor window for the tile image is open!

Will see if I can include this in the upcoming Tiled 0.14 release.

---

<div class="post-metadata">

**Author:** ![Hop](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@Hop](https://discourse.mapeditor.org/u/Hop)\
**Post date:** [September 9, 2015, 7:52am UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/6 "2015-09-09T07:52:41Z")

</div>

> [@bjorn](#):
>
> Will see if I can include this in the upcoming Tiled 0.14 release.

Great. I think this could make a big difference to designers’ workflow. Many 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:** [September 15, 2015, 10:41pm UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/7 "2015-09-15T22:41:55Z")

</div>

Please try the latest daily build. The feature is in and ready to be included in Tiled 0.14!

---

<div class="post-metadata">

**Author:** ![Hop](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@Hop](https://discourse.mapeditor.org/u/Hop)\
**Post date:** [September 16, 2015, 11:36am UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/8 "2015-09-16T11:36:44Z")

</div>

Thanks

I’ve installed from tiled-2015-09-13-win32-setup.exe and the app shows Version v0.13.1-45-g654057e

However, if I right click a single tile in a tile layer, the properties window remains unchanged - the Tile ID remains unchanged as I right click around in the map.

Am I doing something wrong?

---

<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:** [September 16, 2015, 12:20pm UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/9 "2015-09-16T12:20:44Z")

</div>

> [@Hop](#):
>
> I’ve installed from tiled-2015-09-13-win32-setup.exe…

Arg, sorry! I believe a software upgrade on the AppVeyor platform has broken the daily builds so they stopped working on Monday. I’ll have to push some workaround. In the meantime, you should be able to try it with the following installer based on Visual Studio:

[https://ci.appveyor.com/project/bjorn/tiled/build/job/sr7rg819u8ue9bii/artifacts](https://ci.appveyor.com/project/bjorn/tiled/build/job/sr7rg819u8ue9bii/artifacts)

(just note that this one does not feature the Python plugin)

---

<div class="post-metadata">

**Author:** ![Hop](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@Hop](https://discourse.mapeditor.org/u/Hop)\
**Post date:** [September 16, 2015, 1:30pm UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/10 "2015-09-16T13:30:02Z")

</div>

Installed and working great. It’s really cool being able to right click around the surfaces in the map and see the Tile Collision Editor window update instantly too. Many 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:** [September 16, 2015, 7:21pm UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/11 "2015-09-16T19:21:01Z")

</div>

> [@Hop](#):
>
> Installed and working great. It’s really cool being able to right click around the surfaces in the map and see the Tile Collision Editor window update instantly too. Many thanks.

That’s great to hear! And thank you as well for your support!

---

<div class="post-metadata">

**Author:** ![Hop](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@Hop](https://discourse.mapeditor.org/u/Hop)\
**Post date:** [September 21, 2015, 3:24pm UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/12 "2015-09-21T15:24:33Z")

</div>

I might have found a small bug related to this feature.

If a tile has a Custom Property and it is selected in the Tilesets view, the Custom Property is shown in the Properties view as expected.

If another tile is now selected in the Tileset view and this tile does not have any Custom Properties, then the Properties view updates as expected: the Tile ID updates, and Custom Property vanishes.

If however, the second tile was selected by right-clicking on the map, then the Custom Property name from the old tile still shows up, but the value becomes blank.

Version v0.13.1-69-g95e5f19

---

<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:** [September 21, 2015, 3:32pm UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/13 "2015-09-21T15:32:43Z")

</div>

> [@Hop](#):
>
> If however, the second tile was selected by right-clicking on the map, then the Custom Property name from the old tile still shows up, but the value becomes blank.

Arg, what a timing, I missed this and have just published the release! What a strange problem, I thought it was working since the ID property was updating fine. Well, I’ll make sure to fix it in Tiled 0.14.1.

---

<div class="post-metadata">

**Author:** ![Hop](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@Hop](https://discourse.mapeditor.org/u/Hop)\
**Post date:** [September 21, 2015, 3:35pm UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/14 "2015-09-21T15:35:52Z")

</div>

Nooooo! Sorry - I just hit this for the first time now. I’ve also managed to get into a state where the custom property was greyed out, but I’ve so far been unable to reproduce. I’m having to be careful for now, as it can look like a tile has a Custom Property, so you add a value, but it just gets lost.

---

<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:** [September 27, 2015, 10:20am UTC](https://discourse.mapeditor.org/t/eyedropper-tool/755/15 "2015-09-27T10:20:25Z")

</div>

> [@Hop](#):
>
> I’m having to be careful for now, as it can look like a tile has a Custom Property, so you add a value, but it just gets lost.

Yep, this was a very tricky bug where the set of tiles that actually got edited were the ones that were last manually selected in the tileset view, and not the tiles that you had grabbed from the map view. I’ve just [pushed a fix](https://github.com/bjorn/tiled/commit/1b6c12ffa16c39135f9ff48bdf7884309af73085) to the master branch and I’d advise anybody using this feature to try a daily build including this change, once available. A Tiled 0.14.1 release will follow soon.
