tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Please add a "Solo" layer option

Open f1nalspace opened this issue 10 years ago • 10 comments

It would be incredible useful if tiled would support solo-layering (Make ony single layer editable only as needed - all others but readable). An icon next to the checkbox with a dot indicates when a layer is "solo". Double click on layer will set/toggle solo - like in photoshop.

f1nalspace avatar Nov 30 '14 15:11 f1nalspace

Do you mean that you could still select other layers, but when painting you would always end up editing the "solo" layer? I may have to check out Photoshop to really understand what this mode is about.

bjorn avatar Nov 30 '14 15:11 bjorn

The goal is to edit one layer only without accidently editing another one which happens a lot.

f1nalspace avatar Dec 03 '14 18:12 f1nalspace

Are you aware of the following options in Tiled?

  • H toggles highlighting of the current layer, making it more clear which layer you're currently on.
  • Ctrl+Shift+H toggles the visibility of all other layers, which has the side-effect that the tools will no longer work on them.

Another requested feature is to be able to lock layers arbitrarily (#734). Would that also cover this use-case?

bjorn avatar Dec 03 '14 21:12 bjorn

Yes, locking layers would work for me.

f1nalspace avatar Dec 04 '14 19:12 f1nalspace

Should this be closed? Or maybe we can add a key combination which would lock all the layers apart from the current layer.

ketanhwr avatar Aug 17 '17 19:08 ketanhwr

Should this be closed? Or maybe we can add a key combination which would lock all the layers apart from the current layer.

Right, maybe we could use Ctrl+Shift+L.

I wonder if it would make sense to also copy the double-click behavior from Photoshop, though I'm not entirely sure how that works. In Tiled a double-click will edit the layer name. Maybe we could handle double-click on the lock icon.

bjorn avatar Aug 17 '17 21:08 bjorn

Really want to second this, a simple solo layer switch next to the lock/visibility switches would be amazing for workflow speed. (I refer to Adobe After Effects as an example). Basically, in pseudocode: if(any soloed layers){ show only soloed} else { use visibility }. Really hoping for this feature!

olatan avatar Nov 15 '23 15:11 olatan

@eishiya helped me to get a bit more context, since I'm not familiar with this feature in Photoshop or After Effects.

What we're after here is an editor-only (not saved) layer visibility state, which can take any of the following values:

  • Default (use layer's visibility state, but hide when any other layer is Solo)
  • Solo (this layer is visible, ignoring its visibility state)
  • Mute (this layer is hidden, ignoring its visibility state)

And the following UI interactions (these are based on PyxelEdit, but are likely similar):

  • Click the eye icon to show/hide. Open eye: shown, closed eye: hidden, just like Tiled.
  • Alt+click the eye icon to Solo. This puts a frame around the eye icon. Whether hidden or shown, the layer is visible.
  • Shift+click the eye icon to Mute, this crosses it out. Whether hidden or shown, the layer is invisible.

image

In the above image, layer 0 is Mute while layers 1 & 2 are Solo. Layers 1 & 2 are visible, even if layer 2 is normally hidden.

bjorn avatar Nov 15 '23 20:11 bjorn

Exactly, as you say, editor-only layer visibility state. Having a mute state is even a step further than what I was asking, but sounds great! Will it happen?

olatan avatar Nov 17 '23 12:11 olatan

Just for completion's sake: PyxelEdit also lets you set Solo/Mute via the layer's properties (that Settings gear icon in the screenshot), which is more discoverable than the alt/shift interactions, although those are also mentioned in the tooltip for the eye. In Tiled's case, I think having the Solo/Mute options visible in the right-click menu below the visibility options would be a good idea.

eishiya avatar Nov 17 '23 12:11 eishiya