I’m trying to orient objects with a script (not in the Game Engine, in Blender, <alt>P), and I think I should be able to use setMatrix to do this, but I can’t seem to correctly create the matrix. When I use getMatrix, I get a 4x4 result, but when I try to emulate that and say:
newMat = [[1, 0, 0, 0],[0,-0,1, 0],[0,-1, -0, 0] ,[0,-6.5, -0, 1]]
it’s not accepted by setMatrix (says it needs a matrix object).
My intention here is simply to set the camera in the grid plane, pointed at the default cube, and once I can do that, use the same method to orient other objects.
What I did was manually position the camera approx. in the grid plane, pointed at the cube, and then made a script with “getMatrix”; then I rounded the resultant numbers to closest integer (the last set of 4 is presumably the location of the camera, and I’m not sure what the first three are).
So whether I have the right values at this time in my attempt or not, clearly I’m doing something wrong in how I’m trying to make the matrix.
Can anyone try to clue me in?