ll.GetRenderMaterial

ll.GetRenderMaterial(Face: number) : string

Returns a string that is the render material on face (the inventory name if it is a material in the prim's inventory, otherwise the key). Returns the render material of a face, if it is found in object inventory, its key otherwise.

Example

ll.GetRenderMaterial(3)
{
  "def": "func",
  "desc": "Returns a string that is the render material on face (the inventory name if it is a material in the prim's inventory, otherwise the key).\nReturns the render material of a face, if it is found in object inventory, its key otherwise.",
  "energy": 10,
  "sleep": 0,
  "pure": true,
  "link": "https://wiki.secondlife.com/wiki/LlGetRenderMaterial",
  "name": "GetRenderMaterial",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "string"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Face",
          "desc": "",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll