Cold To Warm Palette [Requested]

Sure!



Owh And I’m using Linux, i don’t know if that’s correlated with the error issue…

1 Like

And also I founded similar error too on your Palette Generator plugin

thank you.

right now in my investigation. the error points to my version of python. Im gonna check back later after im done at work. im currently updating my python in hope of triggering the error on my side.

1 Like

Alright! Thanks for the help Kaichi, have a nice day! ^^

can you try this;

I couldnt trigger the error on my end - so i just uploaded what is currently in my pc to my git.

https://github.com/kaichi1342/PaletteGenerator/archive/refs/heads/v.0.1.3c.zip
https://github.com/kaichi1342/ColdToWarmPalette/archive/refs/heads/v.0.1.2d.zip

2 Likes

Okay, let me try

image
I’ve tried the Cold to Warm Palette v0.1.2d it said this
Palette Generator v.0.1.3c


still has same issue
Do I need to install python on linux os? or should i use Krita 4.2.1 for stable plugin?
I tried in windows 11 the coldtowarm pallete said no plugins but the Palette Generator works perfectly :slight_smile:

1 Like

5.2.2 should be good. Its stable in my copy.
I use it everyda in 5.2 and 5.3

Last request is its possible to screen capture the action that causes the issue.

Is this when a colorbox is selected?

Its hard for me to fix as for some reason the error is mot getting triggered in my end. So maybe if i can observe how you use the plugin ill be able to trigger the error.

1 Like

The newest plugin update is stable on windows. I have tested both os, only Linux still has the error issue :sweat_smile:

The rest of it works perfect! Thanks for the help Kaichi :smile: (and goodbye Linux :wave:t2:)

1 Like

ah i see error is on linux. I can try to fix it later - what exact distro is it. Ill create a vm.

The problem is this: the settings being passed to randint are floats. This works by being autoconverted to int on Python 3.10, which Krita currently uses, but on Python 3.12 it is considered an error and must be converted manually. (See random — Generate pseudo-random numbers — Python 3.12.4 documentation )

@Silly_Sally Are you using a distro package of Krita? Have you tried the AppImage?

2 Likes

i honestly still couldnt trigger the error.
I have idea what i need to do, but i will probably missed some since i use randInt with seed in a lot of place for this two plugins.
i’ll try again in another distro tonight, im pretty sure i updated my python but i guess i’ll check again.

If Im not being a disturbance.

Can I ask how I can trigger this error. Im having hard time tracking them as I cant really manage to trigger it even in VM with fresh linux distro.

I cant find which line the error are. :sweat: its making it hard to correct.

Hm, I said before that the error only happens on newer Python, but turns out passing a float to randint triggers a different error even on Python 3.10: ValueError: non-integer stop for randrange()

One way to trigger that error is to change “Hue Strip Variance” to a decimal like 5.50. When you’re asking randint() for a random integer, the range must also be integers. So you can either convert the values with int(), use an int QSpinBox so they’re already integers, or if you want a random float use random.uniform().

thank you very much for this.
I now manage to trigger the error.

Hello,

https://github.com/kaichi1342/ColdToWarmPalette/archive/refs/heads/v.0.1.3.zip

I added a bugfix. This should remove any instance of a float getting pass to randint.

3 Likes

By the way an apology for the problem with HiDpi was really for Cold To Warm, although it happens with both plugins.

Thank you , for this info.

Cold to warm and Palette Generator share the same ColorBox and Color Generator code so when one has the error the other most likely has it.

I tend to update them both at the same time when the error is in the ColorBoxes.

I have a win 11 laptop - Ill go check there to see what is causing this issue.

1 Like

Thank you very much for your work! :smile:

Hey i hope im not bothering, but my krita doesnt recognize the plug in, just says, Plugin not found in the folder

1 Like