How to toggle tools on release in the ten scripts?

I already have a working script in the ten scripts. The only issue is that i want the tool to be activated when i use the shortcut and go back to pervious tool the moment i release.
How do i do that?

:slight_smile: Hello @sixthfist and welcome to the forum!

In the course of this topic:

a plugin is presented for the temporary activation of a (any) tool, this only needs to be accessible via a shortcut, if I’m not mistaken, could this help you? You can find the post in which it is presented here:

#####################
I don’t know why the following came to my mind, but maybe it helps you too? >>
For brushes and erasers there is the plugin BuliBrushSwitch, if and to what extent it could be suitable to activate a script or another tool temporarily, you have to find out yourself.

Michelist

thank you for the reply! im actually aware of the plugin above. But im not sure how i can transform whats above to fit my problem.

what i have is a script that activates my color sampler at 50% (its a script made by someone from reddit. god bless him) and then switches back to the previous tool after you change color.

it works well but it would improve work flow much better if it switched on release. The issue is that i need two of them. One script sets color sampler at 100% blend and another at 50%.

so im not sure how the plugin above handles the need to change the blend settings. is it possible to create two color sampler tools with unique default blends that can fit the plugin above so that i can use it ?

For my understanding, the plugin from @wojtryb can handle only ONE Tool/Shortcut, so no it won’t serve you in complete, you have to decide which Script should be triggered. There is another Plugin that comes to mind, but therefore I have to search my disk or the KDE-forums, I’ll report back if it could be able to do the job, or maybe it is another trigger like that one from @wojtryb you could use in parallel.
Are you able to modify those Plugins, if yes I would post it anyway, so you can have a look if you can adapt it to your needs?

Michelist

Hello! Could you send that script to me please? I have a very similar problem, I want to switch to a blending brush preset temporarily and return to the previous brush preset upon key release.

I don’t know your use-case, but maybe you should take a look at Shortcut Composer v1.4.2 - Plugin for Pie menus, Multiple key assignment, Mouse trackers and more!
:wink:

Michelist

Thank you for responding! I am aware of this plugin, but unfortunately it does not allow for creating custom temporary brush preset shortcuts. I’ll elaborate my use case, you know how the ten brushes plugin allows you to assign keyboard shortcuts to specific brush presets? That’s exactly what I need, except I want to change it so that it switches to the preciously used brush preset upon key release, so for example, if I were to paint two colors next to each other with a hard brush, I would hold the key that switches to the blending preset and be able to blend those two colors together, then seamlessly switch back to painting with a hard brush after releasing the key.

I am aware it’s possible to press the key again and switch back to my original brush, but I often forgot to do this and end up losing the workflow I had. So if it were possible to enable this small change, I feel it would smoothen my rendering process.

Then I can only think of two options. Firstly, the new plugin “Ten Brush Slots”, which I haven’t had the chance to test yet and don’t know whether it meets your requirements, and secondly, programming a corresponding plugin yourself or commissioning one.

Michelist