ImageTexture(Texture)

base classes — bpy_struct, ID, Texture

class bpy.types.ImageTexture(Texture)
checker_distance

Distance between checker tiles (in [0, 0.99], default 0.0)

Type:

float

crop_max_x

Maximum X value to crop the image (in [-10, 10], default 1.0)

Type:

float

crop_max_y

Maximum Y value to crop the image (in [-10, 10], default 1.0)

Type:

float

crop_min_x

Minimum X value to crop the image (in [-10, 10], default 0.0)

Type:

float

crop_min_y

Minimum Y value to crop the image (in [-10, 10], default 0.0)

Type:

float

extension

How the image is extrapolated past its original bounds (default 'REPEAT')

  • EXTEND Extend – Extend by repeating edge pixels of the image.

  • CLIP Clip – Clip to image size and set exterior pixels as transparent.

  • CLIP_CUBE Clip Cube – Clip to cubic-shaped area around the image and set exterior pixels as transparent.

  • REPEAT Repeat – Cause the image to repeat horizontally and vertically.

  • CHECKER Checker – Cause the image to repeat in checker board pattern.

Type:

Literal[‘EXTEND’, ‘CLIP’, ‘CLIP_CUBE’, ‘REPEAT’, ‘CHECKER’]

filter_size

Multiply the filter size used by interpolation (in [0.1, 50], default 1.0)

Type:

float

image
Type:

Image

image_user

Parameters defining which layer, pass and frame of the image is displayed (readonly)

Type:

ImageUser

invert_alpha

Invert all the alpha values in the image (default False)

Type:

bool

repeat_x

Repetition multiplier in the X direction (in [1, 512], default 1)

Type:

int

repeat_y

Repetition multiplier in the Y direction (in [1, 512], default 1)

Type:

int

use_alpha

Use the alpha channel information in the image (default True)

Type:

bool

use_calculate_alpha

Calculate an alpha channel based on RGB values in the image (default False)

Type:

bool

use_checker_even

Even checker tiles (default False)

Type:

bool

use_checker_odd

Odd checker tiles (default True)

Type:

bool

use_flip_axis

Flip the texture’s X and Y axis (default False)

Type:

bool

use_interpolation

Interpolate pixels using selected filter (default True)

Type:

bool

use_mirror_x

Mirror the image repetition on the X direction (default False)

Type:

bool

use_mirror_y

Mirror the image repetition on the Y direction (default False)

Type:

bool

use_normal_map

Use image RGB values for normal mapping (default False)

Type:

bool

users_material

Materials that use this texture

Type:

tuple[Material, …]

Note

Takes O(len(bpy.data.materials) * len(material.texture_slots)) time.

(readonly)

users_object_modifier

Object modifiers that use this texture

Type:

tuple[Object, …]

Note

Takes O(len(bpy.data.objects) * len(obj.modifiers)) time.

(readonly)

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