Select multiple layers by ctrl+clicking them #1157

Kiloku opened this Issue Jun 13, 2016 · 5 comments


None yet
2 participants

Kiloku commented Jun 13, 2016

This would be a useful feature for animation where you need to move certain layers by the same distance on the new frame


dacap commented Jun 13, 2016

Hi @Kiloku, actually you can do something like that using the Move tool when several layers are selected in the Timeline:

Kiloku commented Jun 13, 2016

The problem is that I can't select multiple layers that are not adjacent on the list of layers. The only way to select multiple layers (that I know of) is dragging the selection, which forces me to handle all layers in between the ones I want.

This is what I mean (I want to select the "Braco" and "Face" layers, but not any of the others)


dacap commented Jun 13, 2016

Yeah, that's true and that's is why I didn't close the issue 😅 I'm just working in something (#454) that might enable this Ctrl+click behavior to select multiple non-adjacent layers (as layer groups needs new special ways to handle the layer selection).

dacap added the enhancement label Jun 13, 2016

dacap added this to the v1.2 milestone Jun 13, 2016

dacap self-assigned this Jun 13, 2016

Kiloku commented Jun 13, 2016

Ah, got it. Thanks for the info and for the awesome software 😄

dacap added the timeline label Jul 28, 2016


dacap commented Aug 25, 2016

Implemented, this will be included in the next v1.2-beta2

dacap closed this Aug 25, 2016

@dacap dacap added a commit that referenced this issue Sep 20, 2016

@dacap dacap Add support to move/copy non-adjacent layers/frames
* With this patch we finally removed the LayerIndex class and member
  functions to access layers by index (like Sprite::firstLayer/layerLayer
  /layer/indexToLayer/layerToIndex() etc.). As layer groups can be
  expanded/collapsed, it doesn't make sense to use layer index to
  access layers directly from sprite.
* Now we use a layer_t (int) to access a list of browsable layers each
  time we want to iterate visible layers in the timeline.
* Replaced CelsRange() and Sprite::uniqueCels() param with
  SelectedFrames to iterate non-adjacent cels.
* Updated clipboard operations (copy/paste) in timeline to support
  layer groups.
* Updated Timeline control to support selecting multiple layer/frame
  ranges with Ctrl+ or Alt+click (fix #1157)
* Added more test units for DocumentRange operations (mainly for
  non-adjacent ranges).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment