ColorPlus: a plugin to simulate watercolor painting

Thank you! I came to this topic from the mixbox thread and tried out your plugin, and it works perfectly for my purposes with no noticeable lag so far!

1 Like

Glad you like it! Feel free to ask about the usage. the videos are a bit outdated…

I’m liking the plugin so far, but it makes Krita lag every second despite in the best performance options, which is really distracting for me. Is there a solution for this?

Sorry, I don’t experience this lag… Is it only when you enable auto-mixing? Or does it occur in conjunction with any specific event? e.g. when it happens, is by any chance a layer being created?

It occurs when Krita starts, especially with the auto-mixing disabled.

I’ve no idea right now. Is autofocus enabled?

can you try disabling it ?

If this does not help, can you try disabling all the timers, to see if they are the problem? This requires to comment a couple of lines in the recent_color.py files and restart Krita. The lines you need to comment are 2105 and 2057:


and

Above, I’ve already commented them by adding the # symbol.
Restarting Krita, does it change anything?

It got rid of the lag, but the mixing doesn’t work anymore.

For some reason your machine can’t handle a timer every 40 milliseconds. You could try increasing the time, until it can handle it.

uncomment the two lines; then, in line 2057 , try replacing

self.timerMixon.start(40)

(which means ā€œevery 40 millisecondsā€)

with

self.timerMixon.start(80)

restart Krita, and see if the situation improves. if not, increase again until it does not slowdown Krita. Of course, the auto-mixing might become less responsive. Let me know

Changing line 2057 got the script to be functional, and increased the milliseconds more to prevent some lagging. Though, it’s challenging to change to a different color using the color picker while auto-mix is on.

I think the main issue came from line 2105, which causes the lag to occur every second. It was turned off while line 2057 is active.

Just to understand: if you comment the autoFocus timer (line 2105) and uncomment the auto-mixing timer (line 2057), you don’t have the lag?

I’m trying to understand if the lag is only due to the autofocus timer. If so, we might do something.
If so: uncomment all timers, then increase the 1000 to 10000. Is it better?

The plugin disappeared when I uncommented all the timers, so I undo’d that and only uncomment line 2105 and increasing it to 10000. I have less lag, but I’m still having problems with the color picker.

you must have broken something, possibly an indentation. You need to restore the original version of the file, then increase that number to 10000 or 20000. Then the problems with the color picker should go away, and you should only have a lag every 20 seconds.

(Then we should understand why enumerating windows is so slow on your machine. Do you have other plugins installed?)

I tried that and it didn’t work, and I got another problem with the lag that happens while I’m drawing. I think I don’t need the plugin for now, but thanks for helping with the bugs.

No worries :slight_smile:

I’ve just released a new version where the auto-mixing should be faster

Major new version released! It now works with spectral blending mode (if you have a modified krita build that supports the ā€œover spectralā€ blending mode).

Changes:

  • major usability improvement: new layers are now created when you move the stylus out of the canvas and then back in
  • fixed bug where automatic layer creation sometimes would not occur after changing color from the Advanced Color Selector
  • if your krita version supports spectral blend, then new layers are automatically set to ā€œover spectralā€ blending mode
  • the plugin now works in 16 bit mode, useful for modified version of krita with pigments (ā€œover spectralā€ blending mode)
  • increased performance of auto-mixing
  • fixed several bugs

I need to make a new video illustrating the new workflows… feel free to remind me :slight_smile:

6 Likes

Where can I find this version of krita?, I tried to find it here on the site, nothing else

1 Like

Here: I realized the spectral mixing of mypaint in krita - #196 by urzeye

I think. Wait a second, I’m checking…

1 Like

this is the source code and not the compilation :smiling_face_with_tear:

I don’t remember where I downloaded it. I think it was in that thread, from Urzeye. Anyway, I’m uploading the version I’m using. Here: krita pigments.zip - Google Drive

2 Likes