Important info f or add_visualizer.py users

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 &lt;&lt;&lt;&lt;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.

Hallo, again some changes in the Api, break the script, but I succeeded in let it work again


def init_properties():
    bpy.context.scene["display_indices"] = 0

place a # before the line bpy.context.scene[“display_indices”] = 0
and copy it say after import mathutils
and it works again

SVN 33531

Author got a PM :wink: about this …

And another change (8 dec)
the windows_manager has now a modal_handler_add!!

And heard from the coders, that in the Api (in principle)
first the “what” then the verb, like here: add …

Now add_visualizer.py works again SVN 33596

are theses modifications done for the latest built or we have to do it by hand?

Thanks

As I think, it is not yet in the distribution, I changed my old, working version myself …