Using Gesture to Select Layer on Android and touch enabled devices

I know it’s easier to post a request since I am unable to develop so here goes.

Krita on the Samsung tab is working fantastically well. I am able to finish paintings on it thanks to many gesture support added from 5.1 onwards.

However, layer selection is a super hassle especially if I need to create a group.

Can two finger swipe or plain ol swipe to select layer (a.k.a. procreate) can be done? That would be a godsend.

If this is already catered then I apologise, please then guide me on how to do it.

Thanks

Bumping since I am really stuck here. If this is posted in wrong head then I request moderator to move the same.

Thanks for understanding

Your post is in the correct category, no need to move it I think. As for the request, it is a valid request, but only @sh-zam might beable to answer if it is possible. It might take some time to implement since there is no mobile UI yet.

No need to bump too, since it won’t make any difference in setting priority or anything. I have also added android and mobile devices to the title to make it clear.

1 Like

Or a pinch could be a good gesture for creating layer groups.

Hi Raghu

Thanks for the clarity. I really thought there would be a workaround but not getting traction. so as of now cant use the layers grouping effectively unless I OTG a keyboard then.

@sh-zam not sure how difficult would this be implemented, but easy grouping a layer would unleash the full potential of krita at least on tablets.

@CrazyCatBird, excellent idea. makes more sense, except that in procreate and some other apps pinching merges down the layers. could be difficult for anyone migrating from other apps.

Maybe a temporary solution would be to write a simple plugin that attaches a QGestureRecognizer to the layer list docker and then does the layer merge/selection via the Krita API. I’d imagine that this could be a rather simple plugin.

Android version of krita has no python support as of now. So it must be a native plugin

Pinch to group is how Infinite Painter does it so there would be some people who would be used to it.

Haven’t seen any plugins for android. Not sure

It actually makes more sense then to merge down layers. It would greatly speed up the workflow.

As of now i am creating tons of layers as a stop gap but blending mode usability is so restricted

1 Like

I don’t know if anybody managed to “sideload” a native plugin into Krita Android. But from a developer perspective one would probably had to download a .so file into Android, which could be difficult due to Android’s restrictive security model. I guess Krita would have to be compiled from source to include the the plugin.
I took a quick look at
krita/tree/master/plugins/dockers/layerdocker
and the layer docker is based on a QTreeView where it wouldn’t be too difficult to add a gesture recognizer.

Sorry, I meant the feature should be in krita natively. In krita everything is a plugin, it can be written through c++ Qt or python pyQt. Sorry for confusion. If it is written in c++ and Qt it can be in android that is what I meant

Thanks for clarification, makes sense.

Guess we will have to wait if anyone picks this up. Looks like krita for android user base is lot less but with this recent spree of gestures integration, i am hopeful

1 Like

@sh-zam maybe a simple two-finger swipe to right just to select the layer would be easy to implement. Then we can go to menu to choose grouping. How is that?

In addition to gestures I think a checkbox way of selecting layers and other things would be good for people who have pen display but no gesture support. There will be checkbox besides the eye icon and clicking it will select the layer

5 Likes

Agreed. This is probably the simplest method of all.

Adding gestures to widgets is a bigger undertaking than adding them to canvas. E.g for canvas we have one centralized place for handling all the inputs/configurations etc but one has to think how would one configure them for different widgets (if at all they can be configured).

This is something which I believe is a part of the bigger project to have a better UI for mobile. I will look at QGestureRecognizer to see if there’s any easy way to do it for layers widget and maybe also implement this simple checkbox thing (looks simple to me code-wise :wink: )

3 Likes

Hi! Thanks for the response @sh-zam, the clarification on gesture is valuable.

Though waiting for mobile seems to be counter intuitive for tablet usage :wink: since full gui on tablet is usable enough.
But even the checkbox implementation will be god send cuz the workflow will immensely sped up. Thanks for considering the request.

By mobile sh-zam meant UI not just for mobile but for hand held touch devices. So it definitely includes tablet as priority.

1 Like