texture_origin_nodeid#

part.texture_origin_nodeid(p0: int) int#

Sets the texture origin offset relative to this node id.

The texture origin becomes the x/y/z coordinate of this node offset (if any) by the texture_origin command
Only used if the texture_coord_type is set to projection
Args:
p0:

‘node_id’ The node id that will be used as the origin offset

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