constrain#

query_ent_var.constrain(p0: str) int#

Specify the manner in which to constrain the query of the variable.

This command must lie between either a “query_ent_var: begin” and “query_ent_var: end” pair, or a “query_ent_var: modify_begin” and “query_ent_var: modify_end” pair.
Args:
p0:

‘option’

  • query type Over Time choices are:

  • cursor

  • element

  • ijk

  • max

  • min

  • node

  • scalar

  • query type Distance choices are:

  • 1d_part

  • line_tool

  • spline

Examples:
# 
# Modification change: 
# 
ensight.query_ent_var.modify_begin()
# WARNING: following line includes OBSOLETE call (ensight.query_ent_var.type).
ensight.query_ent_var.type("distance")
ensight.query_ent_var.number_of_sample_pts(20)
ensight.query_ent_var.constrain("line_tool")
ensight.query_ent_var.modify_end()
Returns:

zero on success, non-zero on error