MainTextures(bpy_struct)

base class — bpy_struct

class bpy.types.MainTextures(bpy_struct)

Collection of groups

new(name, type)

Add a new texture to the main database

Parameters:
  • name (string) – New name for the datablock.
  • type (enum in [‘NONE’, ‘BLEND’, ‘CLOUDS’, ‘DISTORTED_NOISE’, ‘ENVIRONMENT_MAP’, ‘IMAGE’, ‘MAGIC’, ‘MARBLE’, ‘MUSGRAVE’, ‘NOISE’, ‘POINT_DENSITY’, ‘STUCCI’, ‘VORONOI’, ‘VOXEL_DATA’, ‘WOOD’]) – Type, The type of texture to add
Returns:

New texture datablock.

Return type:

Texture

remove(texture)

Remove a texture from the current blendfile.

Parameters:
  • texture (Texture, (never None)) – Texture to remove.

Inherited Properties

Inherited Functions

References

Previous topic

MainTexts(bpy_struct)

Next topic

MainWorlds(bpy_struct)