The rotation gets applied, but the translation of 5 units in xyz is completely ignored. Am I misunderstanding how to perform this transformation correctly? Thanks!
import hou cam = hou.node('/obj').createNode('cam') transform_matrix = hou.Matrix4([ [1, 0, 0, 5], [0, 0, -1, 5], [0, 1, 0, 5], [0, 0, 0, 1] ]) cam.setWorldTransform(transform_matrix) print(cam.worldTransform())
Console output (notice the final column reset):
[[1, 0, 0, 0],cam.pre [0, 0, -1, 0],cam.pre [0, 1, 0, 0],cam.pre [0, 0, 0, 1]]cam.pre cam.pre