a better place for this sort of question)

Hi,

Using TranslationMatrix is giving me quite a hard time.

Code: Select all

`## --- example code `

v_a = Blender.Mathutils.Vector(1, 0, 0 ,0)

v_b = Blender.Mathutils.Vector(0, 1, 0 ,0)

m_t = Blender.Mathutils.TranslationMatrix(v_a)

Code: Select all

`print(m_t)`

gives

Code: Select all

`[1.000000, 0.000000, 0.000000, 0.000000](matrix [row 0])`

[0.000000, 1.000000, 0.000000, 0.000000](matrix [row 1])

[0.000000, 0.000000, 1.000000, 0.000000](matrix [row 2])

[1.000000, 0.000000, 0.000000, 1.000000](matrix [row 3])

that looks much like the transpose of what I would have expected...

I proceed anyway, following the documentation, and I multiply the vector by the matrix

(I would have rather done Mv rather vM but since we already have

a transpose, I assume that what I know does not apply to the python API...)

Code: Select all

`print(v_b * m_t)`

Ouch, I get my vector v_b untouched:

Code: Select all

`[0.000000, 1.000000, 0.000000](vector)`

Assuming that the doc is not accurate I try:

Code: Select all

`m_t.transpose() `

m_t * v_b

Still the same:

Code: Select all

`[0.000000, 1.000000, 0.000000](vector)`

Anyone with an advice ?

Thanks,

rm.