polyscope icon indicating copy to clipboard operation
polyscope copied to clipboard

programmatically control the intrinsics / FoV?

Open w-hc opened this issue 2 years ago • 1 comments

Hi thanks for the great work; it's been very helpful. Is there a way to control the camera intrinsics / fov from the script? I want to use it to automate visualizations.

w-hc avatar Jan 05 '22 15:01 w-hc

Very glad to hear this is useful to you! Are you working in C++ or Python?

In C++ you can just assign to double polyscope::view::fov (here).

In Python it doesn't look like there is a binding for it right now. If there was, it should be added here.

We should definitely add official support for this: docs for the C++ function and bindings+docs in Python.

nmwsharp avatar Jan 06 '22 20:01 nmwsharp