does anybody know how to set a matrix for the current viewport? I've just found out how to read it.
MStatus status = M3dView::active3dView().getCamera(camera);
if (status == MS::kSuccess)
printf("focus=%.2f ", camera2.focalLength());
//transform.getRotationQuaternion(x, y, z, w);
MMatrix worldPos = camera.inclusiveMatrix();
x = worldPos(3, 0);
y = worldPos(3, 1);
z = worldPos(3, 2);
w = worldPos(3, 3);
printf("x=%.0f y=%.0f z=%.0f w=%.0f ", x, y, z, x);
Now i want to add some Values to x,y,z and recreate the MMatrix back, but i have no clue how it should work.