action#

view_transf.action(p0: str) int#

Sets the transformation method for interaction in the user interface.

This is not a necessary command. It is used to change the user interface to reflect the transformation currently attached to the mouse button tied to the transformation action (by default the left mouse button).
Args:
p0:

‘method’

  • rotate

  • translate

  • scale

  • zoom

  • band_zoom

  • select_tool_pos

Examples:
ensight.view_transf.action("translate")
Returns:

zero on success, non-zero on error