In the latest SVN van this morning
Matrix*Vector has disappeard
Vectors are used now as ‘row’ vectors
Matrix print layout corresponds to creation (not anymore confusing)
That means you have to change in the
add_visualizer.py script one line!
for loc in locs:
vec = <b>loc[4]*total_mat </b># order is important <<<<THIS LINE CHANGED
# dehomogenise
vec = mathutils.Vector((vec[0]/vec[3],vec[1]/vec[3],vec[2]/vec[3]))
x = int(mid_x + vec[0]*width/2.0)
y = int(mid_y + vec[1]*height/2.0)
texts+=[loc[0], loc[1], loc[2], loc[3], x, y, 0]
This change in the api is going to break a lot of scripts. What it basically means is that you now have to do vectormatrix, instead of matrixvector.
Thanks for the heads-up, I’ll update the index-visualizer script after the weekend.