Texture(ID)

base classes — bpy_struct, ID

subclasses — BlendTexture, CloudsTexture, DistortedNoiseTexture, ImageTexture, MagicTexture, MarbleTexture, MusgraveTexture, NoiseTexture, StucciTexture, VoronoiTexture, WoodTexture

class bpy.types.Texture.Texture(ID)

Texture data-block used by materials, lights, worlds and brushes

animation_data

Animation data for this data-block

Type

AnimData, (readonly)

color_ramp
Type

ColorRamp, (readonly)

contrast

Adjust the contrast of the texture

Type

float in [0, 5], default 1.0

factor_blue
Type

float in [0, 2], default 1.0

factor_green
Type

float in [0, 2], default 1.0

factor_red
Type

float in [0, 2], default 1.0

intensity

Adjust the brightness of the texture

Type

float in [0, 2], default 1.0

node_tree

Node tree for node-based textures

Type

NodeTree, (readonly)

saturation

Adjust the saturation of colors in the texture

Type

float in [0, 2], default 1.0

type
  • NONE None.

  • BLEND Blend, Procedural - create a ramp texture.

  • CLOUDS Clouds, Procedural - create a cloud-like fractal noise texture.

  • DISTORTED_NOISE Distorted Noise, Procedural - noise texture distorted by two noise algorithms.

  • IMAGE Image or Movie, Allow for images or movies to be used as textures.

  • MAGIC Magic, Procedural - color texture based on trigonometric functions.

  • MARBLE Marble, Procedural - marble-like noise texture with wave generated bands.

  • MUSGRAVE Musgrave, Procedural - highly flexible fractal noise texture.

  • NOISE Noise, Procedural - random noise, gives a different result every time, for every frame, for every pixel.

  • STUCCI Stucci, Procedural - create a fractal noise texture.

  • VORONOI Voronoi, Procedural - create cell-like patterns based on Worley noise.

  • WOOD Wood, Procedural - wave generated bands or rings, with optional noise.

Type

enum in [‘NONE’, ‘BLEND’, ‘CLOUDS’, ‘DISTORTED_NOISE’, ‘IMAGE’, ‘MAGIC’, ‘MARBLE’, ‘MUSGRAVE’, ‘NOISE’, ‘STUCCI’, ‘VORONOI’, ‘WOOD’], default ‘IMAGE’

use_clamp

Set negative texture RGB and intensity values to zero, for some uses like displacement this option can be disabled to get the full range

Type

boolean, default False

use_color_ramp

Map the texture intensity to the color ramp. Note that the alpha value is used for image textures, enable “Calculate Alpha” for images without an alpha channel

Type

boolean, default False

use_nodes

Make this a node-based texture

Type

boolean, default False

use_preview_alpha

Show Alpha in Preview Render

Type

boolean, default False

users_material

Materials that use this texture (readonly)

users_object_modifier

Object modifiers that use this texture (readonly)

evaluate(value)

Evaluate the texture at the coordinates given

Returns

Result

Return type

float array of 4 items in [-inf, inf]

classmethod bl_rna_get_subclass(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The RNA type or default when not found.

Return type

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The class or default when not found.

Return type

type

Inherited Properties

  • bpy_struct.id_data

  • ID.name

  • ID.name_full

  • ID.is_evaluated

  • ID.original

  • ID.users

  • ID.use_fake_user

  • ID.is_embedded_data

  • ID.tag

  • ID.is_library_indirect

  • ID.library

  • ID.override_library

  • ID.preview

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_overridable_library

  • 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.pop

  • bpy_struct.property_overridable_library_set

  • bpy_struct.property_unset

  • bpy_struct.type_recast

  • bpy_struct.values

  • ID.evaluated_get

  • ID.copy

  • ID.override_create

  • ID.user_clear

  • ID.user_remap

  • ID.make_local

  • ID.user_of_id

  • ID.animation_data_create

  • ID.animation_data_clear

  • ID.update_tag

  • ID.bl_rna_get_subclass

  • ID.bl_rna_get_subclass_py

References

  • bpy.context.texture

  • BlendData.textures

  • BlendDataTextures.new

  • BlendDataTextures.remove

  • Brush.mask_texture

  • Brush.texture

  • CompositorNodeTexture.texture

  • DisplaceModifier.texture

  • DynamicPaintSurface.init_texture

  • FieldSettings.texture

  • FluidFlowSettings.noise_texture

  • FreestyleLineStyle.active_texture

  • ParticleSettings.active_texture

  • TextureNodeTexture.texture

  • TextureSlot.texture

  • VertexWeightEditModifier.mask_texture

  • VertexWeightMixModifier.mask_texture

  • VertexWeightProximityModifier.mask_texture

  • WarpModifier.texture

  • WaveModifier.texture