Hi guys,
I’m very new in Blender and have a question to you…
I want ann aggregated transformation matrix for transformation in 3D containing (in this order)
-
a translation in x direction of 20
-
a rotation around the z-axis (up-Axis) of PI/2
-
an uniform scale of 10 Then I want to apply the aggregated transformation matrix to the local point P=[px=100, py=100, pz=0]
Till now, I have the following code:
tmatrix=Matrix()
print(trmatrix) :
<Matrix 4x4 (1.0000, 0.0000, 0.0000, 0.0000)
(0.0000, 1.0000, 0.0000, 0.0000)
(0.0000, 0.0000, 1.0000, 0.0000)
(0.0000, 0.0000, 0.0000, 1.0000)>
tmatrix.translation = (20,0,0)
print(trmatrix) :
<Matrix 4x4 (1.0000, 0.0000, 0.0000, 20.0000)
(0.0000, 1.0000, 0.0000, 0.0000)
(0.0000, 0.0000, 1.0000, 0.0000)
(0.0000, 0.0000, 0.0000, 1.0000)>
So the translation should be ok…
But cant find a solution for the whole problem.
Can u help me?
Thanks alot !
Blender_rulz