Colour has 1 number?

While playing with some Revit text notes I was trying to change their colour.

However when I checked to see what format the colours were in I got a single number.

255 = Red

I changed the text to blue and also got 255.

Setting the parameter value to 0 gives black text.
Setting the parameter value to 255 gives red text.

How would I get blue text?

Did you override the element to be blue or did you update the parameter value? I’m getting 0, 255, and 16711680 for black, red, and blue respectively, which would be hexadecimal values. Springs has a node for converting RGB to hex or you can just use a codeblock with the formula:
hex = r + 256*g + 256*256*b;

2 Likes

Nope, I just ran it to see what the value was and got what you see in the screen shot!

And you confirmed the parameter itself is set to Blue, not an override? You said you changed it to Blue so I’m just wondering how you changed it. Not sure why it would return a different value.

Hello, by reconnecting your node it updates if you were in automatic
for the blue stick with the details of Mr. Nick

Cordially
christian.stan

Ah, this morning it seems to be different. :slight_smile: