I got a model in -1 to 1 space and I want to encode each vertex position into the the vertex color for future use. There seems to be nothing by default to do that so I will have to use a custom script for that. I have never used scripting in Blender so I am a bit lost on how to access its data etc. and could use some help.
The pseudo code would be something like this:
foreach vertex in mesh.vertices vertex.color = (vertex.pos * 0.5) + 1