Rendering from ovitos script at specific camera position not working properly and not deterministic [dev200]
I want to render an image using Ovito where I first find a good camera position from the GUI, then writes those coordinates down to be able to script it. However, I can't get the script to produce what I want and it seems like the camera position and camera view direction I set in the viewport doesn't really do what's expected.
I had the same problems a couple of weeks ago where I wanted to render a 2d surface from above at a specific position. I tried to adjust the camera (even with a script to produce multiple images which looked like the camera was randomly-ish placed).
Anyway, see the attached script. Here I have a simple LAMMPS data file and try to render it. Running the same script twice may give different results (see both images in the .zip).