Python reference: ViewParameters

The class ViewParameters represents the C API structure TViewParameters.

Construction

To create an instance of ViewParameters, call the Model property defaultViewParameters and then modify the attributes as required.

viewparams = model.defaultViewParameters

Attributes

The attributes of ViewParameters are the same as in TViewParameters and take the same values. There are two additional attributes, RelativeToObject and DisturbanceVessel, in the Python API ViewParameters class. These provide convenient alternatives to the RelativeToObjectHandle and DisturbanceVesselHandle attributes by allowing OrcaFlex objects to be used instead of their handles.