ST_SetName

Updated at:

Sets a name for a material or texture object.

Syntax

texture ST_SetName(texture texture, cstring name);
material ST_SetName(material material, cstring name);

Parameters

ParameterDescription
materialThe material object.
textureThe texture object.
nameThe name of the object.

Examples

Set a name for a material object and verify the result using ST_Name:

SELECT ST_Name(ST_SetName(the_material, 'material_name'))
FROM t_table

Result:

material_name

Set a name for a texture object and verify the result using ST_Name:

SELECT ST_Name(ST_SetName(the_texture, 't_name'))
FROM t_table

Result:

t_name