Hello Seboon,
Looks like a bug in the latest update, however, in the meantime while we are fixing that you can use the following code as a workaround:
## Update View (frontal) with Hotkey "." ##
def Update_Frontview_Bbox():
#Update Frontview and Bbox in accordance of the CRS
chunk = PhotoScan.app.document.chunk
T = chunk.transform.matrix
viewpoint = PhotoScan.app.viewpoint
cx = viewpoint.width
cy = viewpoint.height
region = chunk.region
r_center = region.center
r_rotate = region.rot
r_size = region.size
r_vert = list()
for i in range(8): #bounding box corners
r_vert.append(PhotoScan.Vector([0.5 * r_size[0] * ((i & 2) - 1), r_size[1] * ((i & 1) - 0.5), 0.25 * r_size[2] * ((i & 4) - 2)]))
r_vert[i] = r_center + r_rotate * r_vert[i]
height = T.mulv(r_vert[1] - r_vert[0]).norm()
width = T.mulv(r_vert[2] - r_vert[0]).norm()
if width / cx > height /cy:
scale = cx / width
else:
scale = cy / height
viewpoint.coo = T.mulp(chunk.region.center)
viewpoint.mag = scale
ym = PhotoScan.Matrix([[1,0,0],[0,0,-1],[0,1,0]])
viewpoint.rot = chunk.transform.rotation * r_rotate * ym
PhotoScan.app.viewpoint = viewpoint