active_scalars_algorithm#
- active_scalars_algorithm(
- inp,
- name: str,
- preference: PointLiteral | CellLiteral = 'point',
Add a filter that sets the active scalars.
- Parameters:
- inp
pyvista.DataSet| vtkAlgorithm Input data or algorithm.
- name
str Name of the scalars to set as active.
- preference
str, default: ‘point’ Either
'point'or'cell'. Determines the field association when the same array name exists on both.
- inp
- Returns:
ActiveScalarsAlgorithmActive scalars filter applied to the input data.