Selur's Little Message Board

Full Version: ColorFix vs TimeCube
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 
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!
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
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
Code:
import vs_colorfix
1. before the filter call, the current state gets assigned to an additional variable
Code:
clipref = clip
2. after the filter call, vs_colorfix gets called.
Code:
# 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
Code:
# additional output baseClip
baseClip = clip
2. create another custom section behind the filter
Code:
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:
Code:
# 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
Code:
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.
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.
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