select_default#
- tensor.select_default() int #
Sets default as the current tensor glyph selection, so subsequent attribute modifications will affect the default.
When certain attributes will be common to future tensor glyph parts, it is useful to set these once as the default.- Examples:
# # Setting to default # ensight.tensor.select_default() # # Setting a few things as defaults # ensight.part.modify_begin() ensight.tensor.scale_factor(1.5000e+00) ensight.tensor.display_middle("OFF") ensight.tensor.color_by("direction") ensight.tensor.compression_rgb(1.0000e+00,0.0000e+00,0.0000e+00) ensight.tensor.tension_rgb(0.0000e+00,0.0000e+00,1.0000e+00) ensight.tensor.line_width_by("part") ensight.part.modify_end()
- Returns:
zero on success, non-zero on error