Selur's Little Message Board
ColorFix vs TimeCube - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Talk, Talk, Talk (https://forum.selur.net/forum-5.html)
+--- Forum: Small Talk (https://forum.selur.net/forum-7.html)
+--- Thread: ColorFix vs TimeCube (/thread-4184.html)



ColorFix vs TimeCube - john.alt.muze - 16.08.2025

I really like the way FixColor works on the VSMLRT frame resizer. I tried to add it before the end using custom scripts but I can't pass "clipref" to a custom script.

This is the code 
# fixing colors with ColorFix
clip = vs_colorfix.average(clip=clip, ref=clipref, fast=False, radius=10)


It would be nice to have "ColorFix" on the Color Tab although I managed to get the colors close to correct by using TimeCube.

I'm trying to use the GUI on its own. If anyone has suggestions, I'm all ears.

Signed, 
nOOb!


RE: ColorFix vs TimeCube - Selur - 16.08.2025

Newer dev versions allow adding mutiple outputs and should allow accessing those outputs in other custom section.
But, I just noticed I broke FixColor support in my latest dev. Smile


RE: ColorFix vs TimeCube - Selur - 16.08.2025

Okay, I fixed the ColorFix bug I introduced and uploaded a new dev.

So, Hybrid adds these things when using color fix:
0. the import
import vs_colorfix
1. before the filter call, the current state gets assigned to an additional variable
clipref = clip
2. after the filter call, vs_colorfix gets called.
# fixing colors with ColorFix
clip = vs_colorfix.average(clip=clip, ref=clipref, fast=False, radius=10)
What you can do if you want to use fixColor wherever you want, is to
1. use a custom section before the filter
# additional output baseClip
baseClip = clip
2. create another custom section behind the filter
import vs_colorfix
clip = vs_colorfix.average(clip=clip, ref=baseClip, fast=False, radius=10)
[/code]
Note that ColorFix requires that the input clip where the color fix will be applied to, must be in YUV444PS, YUV444PH, RGBS, RGBH, GRAYS, or GRAYH format.
And the reference clip where the colors are taken from, must be in YUV444PS, YUV444PH, RGBS, RGBH, GRAYS, or GRAYH format.

So you might want to use:
# additional output baseClip
baseClip = core.resize.Bicubic(clip=clip, format=vs.YUV444PS, matrix_in_s="470bg", range_s="limited")
2. create another custom section behind the filter
import vs_colorfix
# requires colorformat YUV444PS
clip = vs_colorfix.average(clip=clip, ref=baseClip, fast=False, radius=10)
or something similar.

Argh, I just noticed that the custom section tool-tip only works on right click and isn't shown in the sidebar. Angry
So for the time being, here's a screenshot of it:
[Image: grafik.png]

=> try the latest dev and let me know whether that works for you, if that doesn't solve your problem let me know in more details what you are doing and what you are trying to da and I might be able to post another example.

Cu Selur

Ps.: updated dev again (Hybrid_dev_2025.08.16-221059), fixed another bug and added the tool-tip info to the 'Insert before' label, this way one can see it in the sidebar.


RE: ColorFix vs TimeCube - john.alt.muze - 18.08.2025

Thanks! Will I be okay if using Dev if I'm on an NVIDIA GeForce RTX 4060 Ti? The zip folder name made me hesitant.


RE: ColorFix vs TimeCube - Selur - 18.08.2025

Do Not use that addon version unless the current one falls.
The Hybrid Dev is fine, but do Not use the den addon, it has shown problems with some filters

Cu Selur