relative_viewport#

text.relative_viewport(p0: int) int#

Specifies the viewport to which location of the selected text will be relative, when specified by the text: location_x and location_y commands.

A value of zero indicates the graphics window.
Args:
p0:

‘viewport’ specifies the viewport

Examples:
ensight.text.select_begin(1)
ensight.text.relative_viewport(0)
ensight.text.location_x(0.5)
ensight.text.location_y(0.6)
Returns:

zero on success, non-zero on error