texture_origin_use#

part.texture_origin_use(p0: str) int#

Sets how the texture origin and orientation will be defined.

Only used if the texture_coord_type is set to projection.
Args:
p0:

‘projection’

  • absolute

  • offset_by_nodeid

  • offsetvectors_by_nodeid

Examples:
ensight.part.select_begin(1)
ensight.part.modify_begin()
ensight.part.texture_coord_type("projection")
#
# offset the texture by one unit in the x direction from nodeid 3443
#
ensight.part.texture_origin_use("offset_by_nodeid")
ensight.part.texture_origin_nodeid(3443)
ensight.part.texture_origin(1,0,0)
ensight.part.texture_svector(2,0,0)
ensight.part.texture_tvector(0,2,0)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error