Hello! I’m working on making single rendering view with paraview backend.
I successed with running python launcher included in Kitware/visualizer.
I changed the renderer of visualizer from React/Renderers/VtkRenderer to NativeUI/Canvas/RemoteRenderer due to more flexible compability.
I can call the methods in renderer object such as getCamera.
However, it seems that resetCamera and updateCamera are not working.
I can manipulate the camera with mouse interaction (drag).
I cannot find the reason why its not working because getCamera is called exactly the same way that I did with resetCamera and updateCamera.
Could you help me with this?
Below is my code for resetting camera.
window.renderer is an object of NativeUI/Canvas/RemoteRenderer class and is set before it is called.
resetCamera() {
console.log(window.renderer);
console.log(parseInt(window.renderer.view));
console.log(network.getClient().ViewPort.getCamera(parseInt(window.renderer.view)));
console.log(network.getClient().ViewPort.resetCamera(parseInt(window.renderer.view)));
window.renderer.render();
}