ST_Name

Updated at:

Returns the name of a material or texture object.

Syntax

cstring ST_Name(texture texture);
cstring ST_Name(material material);

Parameters

ParameterTypeDescription
texturetextureThe texture object.
materialmaterialThe material object.

Description

ST_Name retrieves the name string previously assigned to a material or texture object. Call ST_SetName to assign a name before calling this function.

Examples

Return the name of a material object:

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

Result:

material_name

Return the name of a texture object:

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

Result:

t_name

See also

  • ST_SetName — assigns a name to a material or texture object