Convert int angle to matrix?

Hello!

I have this function which converts the matrix to a int angle:

def getZAngle(matrix):
	tempMatrix = Matrix(matrix[0], matrix[1], matrix[2])
	return tempMatrix.transpose().toEuler().z

This is all very good, but I need to somehow convert the changed angle back into a matrix. Anybody know how this would be done?

You need to make a euler list first:

from Mathutils import Euler

eul = Euler([x_rot, y_rot, z_rot])
mat = eul.toMatrix()

Look for Mathutils under the table of contents here if you want more info:
http://www.blender.org/documentation/249PythonDoc/GE/

I have done some fooling around with rotation, vectors and matrices.
Maybe the things I learned could help you.

What are you trying to do?

Jbal