selection#
- ENS_GLOBALS.selection(*args, **kwargs) Any #
Access the EnSight selection objects:
ENS_GLOBALS.selection(name: str = None, type: Type[ENSOBJ] = None) -> ENS_GROUP
Returns an ENS_GROUP object representing the current selection in EnSight. The method supports two keyword: ‘name’ and ‘type’. Only one of these can set specified. They specify which selection ENS_GROUP to return. If no keyword is specified, name=’ENS_PART’ is the default.
- Args:
- name:
This keyword can be ‘ENS_PART’, ‘ENS_VAR’, ‘ENS_ANNOT’ to select a specific class.
- type:
This keyword can be ensight.objs.ENS_PART, ensight.objs.ENS_VAR, ensight.objs.ENS_ANNOT.
- Returns:
An
ENS_GROUP
instance.