texture_origin#

part.texture_origin(p0: float, p1: float, p2: float) int#

Sets the texture origin offset in model space. This describes the “lower left” corner of the texture in world coordinates. This is an offset amount if the Projection offset is relative to a node ID. If not, it is an offset from the world coordinate origin, i.e., it becomes an absolute origin.

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

‘x_orig’ the x coordinate for the texture origin

p1:

‘y_orig’ the y coordinate for the texture origin

p2:

‘z_orig’ the z coordinate for the texture origin

Examples:
ensight.part.select_begin(1)
ensight.part.modify_begin()
ensight.part.texture_origin(-1,.2,1)
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