I’m trying to convert HSV value in CHOP to TOP. CHOP to has only RGB setting (all kind but not HSV). Is there any way to do it?

I was thinking of going from HSV CHOP to TOP, then HSV to RGB, and back to CHOP. It’s only single colour pixel.

What I’m trying to do is to change phong emit value based on CHOP. I know hue and saturation (constants) and only want to flash it with value, based on other events. I can’t simply export HSV values to phong emit (or maybe can I?).


There is a colorsys module in python that lets you convert between colorspaces


You can use this in TD parameters using the mod function

mod.colorsys.hsv_to_rgb(0.5, 0.5, 0.4)

which returns a tuple so if you wanted the red channel for example

mod.colorsys.hsv_to_rgb(0.5, 0.5, 0.4)[0]

hsv_to_rgb.tox (486 Bytes)

I was fiddling with the HSV/RGB converter tops trying to a similar thing.
The python code was super helpful to getting the thing accomplished, so thanks @ben for posting the solution!!!