"FitAll" function in python scripting
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I have a request concerning the function that set the viewing position so that all visible datasets in the selected 3D view are within the viewing frustum. This function is the first icon in the Camera Control Toolbar. I would like to use this function when scripting in python. Can you expose this function via a "FitAll" method or something similar? I know there exists a ResetCamera function but it seems that does not correspond to what I want.
_RenderView = GetRenderView() _RenderView.CenterAxesVisibility = 0 _RenderView.CenterOfRotation = [2.05, 2.05, 2.13] _RenderView.CameraViewUp = [-0.1462842057166934, -0.63184311527201897, -0.76116700456679443] _RenderView.CameraPosition = [4.3574016706599696, 7.6016996854983274, -3.0256734058706636] _RenderView.CameraClippingRange = [2.9513133656308672, 13.226048282992661] _RenderView.CameraFocalPoint = [2.9930930754568661, 1.7779227807543228, 2.0708298819357598]
The last 4 commands of this code are necessary to do the "FitAll" BUT they are dependent on the mesh and then not adapted to a pure scripting environment. Thanks in advance,