I am using python script to snapshot the 3D datasets. A lot of datasets. It seems the camera position/placement, etc will affect the snapshot(it may snapshot the whole dataset, or just part of it) as shown as the attached picture. The 4 pictures are actually using 2 sets of parameters to blindly snapshot the datasets (parameters are from the tracing python script for the 1st data in paraview GUI ).
I checked and found different dataset size will have different camera position/placement parameter as below lines shown to make sure snapshot the whole dataset, while I can not figure out how to calculate these parameters based on the dataset size (and maybe the window size?)
# current camera placement for renderView1
renderView1.CameraPosition = [-553.2213163882634, 1225.361636475504, 1340.9145427277479]
renderView1.CameraFocalPoint = [249.5, 249.5, 249.5]
renderView1.CameraViewUp = [0.2719455703783571, 0.8080929324180035, -0.5225240849259124]
renderView1.CameraParallelScale = 432.1466764884349
My question: how to calculate the cameral placement parameters according to the dataset size, in order to make sure snapshot the whole dataset?
Tools … Start Trace is your friend . I think you want to use the ‘resetCamera’ button, which will be recorded as a command you can use in your Python script.
HTH,