def Str2Vec4(string): buffer = string.split(' ') return pm.Vec4(*[float(buffer[i]) for i in range(4)])