This topic describes the ST_Name function. This function returns the name of a material or texture object.

Syntax

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

Parameters

ParameterDescription
textureThe texture object.
materialThe material object.

Description

This function returns the name of a material or texture object. You must call the ST_SetName function to configure a name before you can call this function to query the name.

Examples

  • Example 1:
    SELECT ST_Name(ST_SetName(the_material, 'material_name'))
    FROM t_table
    
    -------------------
    material_name
  • Example 2:
    SELECT ST_Name(ST_SetName(the_texture, 't_name'))
    FROM t_table
    
    -------------------
    t_name