Is it possible to save a color settings to file?

Hello, is there a quick way to save color settings to a file for use in another workflow?
Color port output looks like PMML but is not… any solution to convert it?

image

I played with the idea of extracting RGB values but then I would not know how to reinject them…

Thanks for ideas

Ludovico

@zioludo you could explore the node:

1 Like

Dear @mlauber71 ,
thanks… but how I convert the RGB values back in a color setting?
I looked at your workflow

and you use the RGB values in Python. I would need a node that converts the RGB value in a Knime Color model…

L.

You can use the Model Reader for it.

The Models which are read are our top most DataPort, so you can use them for everything. Yes, even for flow variables. Which looks kind of funny, but you can write the output of a flow variable port into a “model” and read it back in and all your variables are back.

As the Colour model is also only a DataPort under the hood, you can write this out with the Model Writer and read it back in.

3 Likes

Thanks!
That’s what I was looking for.
Ludovico

I learned something new today! :smiley:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.