Sets a name for a material or texture object.
Syntax
texture ST_SetName(texture texture, cstring name);
material ST_SetName(material material,cstring name);Two overloaded variants are available: one for texture objects and one for material objects.
Parameters
| Parameter | Description |
|---|---|
| material | The material object. |
| texture | The texture object. |
| name | The name to assign to the object. |
Examples
Set a name on a material object and retrieve it using ST_Name:
SELECT ST_Name(ST_SetName(the_material, 'material_name'))
FROM t_table
-------------------
material_nameSet a name on a texture object:
SELECT ST_Name(ST_SetName(the_texture, 't_name'))
FROM t_table
-------------------
t_name该文章对您有帮助吗?