[Bf-python] Bug in Mathutils

Gilbert, Joseph jgilbert at tigr.org
Thu May 6 17:22:33 CEST 2004


Doh! That's a great idea that I didn't think of. Right now you are forced to use lists. Matrix([list1],[list2],[list3], etc.)
I didn't think of Matrix(vec1,vec2,vec3, etc.).  I go ahead and add that (after I get this bones thing fixed) :)
For now the best way would be to do this:
Matrix([vec1[0],vec1[1],vec1[2]],[vec2[0],vec2[1],vec2[3]],etc.)

-----Original Message-----
From: bf-python-admin at blender.org [mailto:bf-python-admin at blender.org] On Behalf Of Carlos López
Sent: Thursday, May 06, 2004 8:33 AM
To: bf-python at blender.org
Subject: RE: [Bf-python] Bug in Mathutils

I realized... :)
One more question. It's my first use of Mathutils and I'm not familiarized with it...
I have 3 vectors: v1,v2,v3. I want to form a matrix from them, putting them into rows:

|  v1  |
|  v2  |
|  v3  |

I do "Mathutils.Matrix( v1 , v2 , v3 )" and it returns they aren't lists. Ok ,they're vectors. What is the best way?

Thanks for all
Klópes


>
>Subject: RE: [Bf-python] Bug in Mathutils
>   From: "Joseph Gilbert" <models at paposo.com>
>   Date: Thu, 6 May 2004 07:44:57 -0400
>     To: <bf-python at blender.org>
>
>The only thing I can think of is to copy the mat before you invert or invert
>and then copy...
>M.invert()
>copy = Mathutils.CopyMat(M)
>
>-----Original Message-----
>From: bf-python-admin at blender.org [mailto:bf-python-admin at blender.org]On
>Behalf Of Carlos López
>Sent: Thursday, May 06, 2004 6:46 AM
>To: bf-python at blender.org
>Subject: RE: [Bf-python] Bug in Mathutils
>
>
>Right! (Sorry for the false report)
>But... what if I want a new matrix?
>
>
>
>_______________________________________________
>Bf-python mailing list
>Bf-python at blender.org
>http://www.blender.org/mailman/listinfo/bf-python
>
>
>_______________________________________________
>Bf-python mailing list
>Bf-python at blender.org
>http://www.blender.org/mailman/listinfo/bf-python
_______________________________________________
Bf-python mailing list
Bf-python at blender.org
http://www.blender.org/mailman/listinfo/bf-python



More information about the Bf-python mailing list