get_material
Get information about a material (coating) by its index in the project, or all materials (coatings) of the project.
Call:
int ires = ac_request_special("get_material", int matindex, int iTableMat);
Here:
iTableMat - a table describing the material (coating).
If you specify a specific material index in matindex, then there will be only one line.
If you specify -1, then the entire list of materials (coatings) will be written.
Output table structure:
"material_index" type int - index of material (coating),
"name" type string - name of the material (coating),
"texturepath" type string - texture,
"surfaceRGB" string type - coverage RGB code,
"surfaceRGB255" - string type - RGB in comma-separated sequence (eg "255,100,20").