TexMapping(bpy_struct)

base class — bpy_struct

class bpy.types.TexMapping(bpy_struct)

Texture coordinate mapping settings

mapping

(default 'FLAT')

  • FLAT Flat – Map X and Y coordinates directly.

  • CUBE Cube – Map using the normal vector.

  • TUBE Tube – Map with Z as central axis.

  • SPHERE Sphere – Map with Z as central axis.

Type:

Literal[‘FLAT’, ‘CUBE’, ‘TUBE’, ‘SPHERE’]

mapping_x

(default 'NONE')

Type:

Literal[‘NONE’, ‘X’, ‘Y’, ‘Z’]

mapping_y

(default 'NONE')

Type:

Literal[‘NONE’, ‘X’, ‘Y’, ‘Z’]

mapping_z

(default 'NONE')

Type:

Literal[‘NONE’, ‘X’, ‘Y’, ‘Z’]

max

Maximum value for clipping (array of 3 items, in [-inf, inf], default (0.0, 0.0, 0.0))

Type:

mathutils.Vector

min

Minimum value for clipping (array of 3 items, in [-inf, inf], default (0.0, 0.0, 0.0))

Type:

mathutils.Vector

rotation

(array of 3 items, in [-inf, inf], default (0.0, 0.0, 0.0))

Type:

mathutils.Euler

scale

(array of 3 items, in [-inf, inf], default (0.0, 0.0, 0.0))

Type:

mathutils.Vector

translation

(array of 3 items, in [-inf, inf], default (0.0, 0.0, 0.0))

Type:

mathutils.Vector

use_max

Whether to use maximum clipping value (default False)

Type:

bool

use_min

Whether to use minimum clipping value (default False)

Type:

bool

vector_type

Type of vector that the mapping transforms (default 'POINT')

Type:

Literal[Mapping Type Items]

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References