TextureGroup

class TextureGroup
property id

The id of the group.

Type

str, read-only

property name

The name of the group.

Type

str

Raises

ReadOnlyError -- If Database is in read only mode.

list_textures()

List the textures of this group.

Returns

The list of textures in the group.

Return type

list(Texture)

remove(force=False)

Delete a texture group

Note

By default, only empty groups can be deleted (NotEmptyError is raised otherwise), use force to force deletion of non empty groups.

Parameters

force (bool) -- Force the deletion of the group even if it contains textures.

Raises
import_from_encoded_data(data)

Import a texture from encoded data (e.g. jpg, png, etc...).

Parameters

data (bytes) -- Encoded image data.

Returns

The created texture.

Return type

Texture

Raises

ReadOnlyError -- If Database is in read only mode.