============ TextureGroup ============ .. py:currentmodule:: p3dsdk .. py:class:: TextureGroup .. py:method:: id :property: The id of the group. :type: str, read-only .. py:method:: name :property: The name of the group. :type: str :raises ReadOnlyError: If :py:obj:`Database` is in read only mode. .. py:method:: list_textures() List the textures of this group. :returns: The list of textures in the group. :rtype: list(Texture) .. py:method:: remove(force = False) Delete a texture group .. note:: By default, only empty groups can be deleted (:py:obj:`NotEmptyError` is raised otherwise), use ``force`` to force deletion of non empty groups. :param force: Force the deletion of the group even if it contains textures. :type force: bool :raises NotEmptyError: If ``force`` is :py:obj:`False` and the group contains textures. :raises ReadOnlyError: If :py:obj:`Database` is in read only mode. .. py:method:: import_from_encoded_data(data) Import a texture from encoded data (e.g. jpg, png, etc...). :param data: Encoded image data. :type data: bytes :returns: The created texture. :rtype: Texture :raises ReadOnlyError: If :py:obj:`Database` is in read only mode.