I’ve been looking everywhere for this, but can’t seem to find the begger. How on Earth’d you unpack getRGBA to four floats?
I guess you need to do something like this:
RGBA=own.getRGBA()
R=RGBA[0]
G=RGBA[1]
B=RGBA[2]
A=RGBA[3]
In theory, yes. Only the KX_GameObject has no getRGBA; it’s in getMesh.getVertex. And getRGBA isn’t subscriptable, requesting getRGBA()[1] will simply return the unsubscriptable error. Even if it did work, it’d return the packed fragment, not the float.
Bump? Getting no closer to this myself. Tried every float unpack I can think of.