I have a bunch of colours where the alpha is changing lots - but not the rgb bit.
So, I’d like to store this rgb bit in a constant:
local WHITE = vmath.vector3(1, 1, 1)
Then, in the script, I set the alpha value separately:
gui.set_color(node, WHITE)
gui.set_alpha(node, alpha)
Now I wonder if this could be done in a one-liner:
gui.set_color(node, vmath.vector4(the constant bit, alpha))
In short: is it possible to store parts of a vector in a constant/a variable? So far, I haven’t found a way.