# TexMapping(bpy_struct)

base class — `bpy_struct`

class `bpy.types.``TexMapping`(bpy_struct)

  Texture coordinate mapping settings

  `mapping`
    - `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: | enum in [‘FLAT’, ‘CUBE’, ‘TUBE’, ‘SPHERE’], default ‘FLAT’

  `mapping_x`

    Type: | enum in [‘NONE’, ‘X’, ‘Y’, ‘Z’], default ‘NONE’

  `mapping_y`

    Type: | enum in [‘NONE’, ‘X’, ‘Y’, ‘Z’], default ‘NONE’

  `mapping_z`

    Type: | enum in [‘NONE’, ‘X’, ‘Y’, ‘Z’], default ‘NONE’

  `max`

    Maximum value for clipping

    Type: | float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)

  `min`

    Minimum value for clipping

    Type: | float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)

  `rotation`

    Type: | float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)

  `scale`

    Type: | float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)

  `translation`

    Type: | float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)

  `use_max`

    Whether to use maximum clipping value

    Type: | boolean, default False

  `use_min`

    Whether to use minimum clipping value

    Type: | boolean, default False

  `vector_type`

    Type of vector that the mapping transforms

    - `TEXTURE` Texture, Transform a texture by inverse mapping the texture coordinate.
    - `POINT` Point, Transform a point.
    - `VECTOR` Vector, Transform a direction vector.
    - `NORMAL` Normal, Transform a normal vector with unit length.

    Type: | enum in [‘TEXTURE’, ‘POINT’, ‘VECTOR’, ‘NORMAL’], default ‘POINT’

Inherited Properties

`bpy_struct.id_data` |

Inherited Functions

`bpy_struct.as_pointer` `bpy_struct.driver_add` `bpy_struct.driver_remove` `bpy_struct.get` `bpy_struct.is_property_hidden` `bpy_struct.is_property_readonly` `bpy_struct.is_property_set` `bpy_struct.items` | `bpy_struct.keyframe_delete` `bpy_struct.keyframe_insert` `bpy_struct.keys` `bpy_struct.path_from_id` `bpy_struct.path_resolve` `bpy_struct.property_unset` `bpy_struct.type_recast` `bpy_struct.values`

References

`ShaderNodeTexBrick.texture_mapping` `ShaderNodeTexChecker.texture_mapping` `ShaderNodeTexEnvironment.texture_mapping` `ShaderNodeTexGradient.texture_mapping` `ShaderNodeTexImage.texture_mapping` `ShaderNodeTexMagic.texture_mapping` | `ShaderNodeTexMusgrave.texture_mapping` `ShaderNodeTexNoise.texture_mapping` `ShaderNodeTexSky.texture_mapping` `ShaderNodeTexVoronoi.texture_mapping` `ShaderNodeTexWave.texture_mapping`