ll.SetTextureAnim

ll.SetTextureAnim(Mode: number, Face: number, SizeX: number, SizeY: number, Start: number, Length: number, Rate: number) : ()

Animates a texture by setting the texture scale and offset. Mode is a bitmask of animation options. Face specifies which object face to animate. SizeX and SizeY specify the number of horizontal and vertical frames.Start specifes the animation start point. Length specifies the animation duration. Rate specifies the animation playback rate.

Example

ll.SetTextureAnim(
  14,
  12,
  7,
  9,
  3.14,
  3.14,
  3.14
)
{
  "def": "func",
  "desc": "Animates a texture by setting the texture scale and offset.\nMode is a bitmask of animation options.\nFace specifies which object face to animate.\nSizeX and SizeY specify the number of horizontal and vertical frames.Start specifes the animation start point.\nLength specifies the animation duration.\nRate specifies the animation playback rate.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetTextureAnim",
  "name": "SetTextureAnim",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Mode",
          "desc": "Mask of Mode flags.",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Face",
          "desc": "Face number or ALL_SIDES.",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "SizeX",
          "desc": "Horizontal frames (ignored for ROTATE and SCALE).",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "SizeY",
          "desc": "Vertical frames (ignored for ROTATE and SCALE).",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Start",
          "desc": "Start position/frame number (or radians for ROTATE).",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Length",
          "desc": "number of frames to display (or radians for ROTATE).",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Rate",
          "desc": "Frames per second (must not greater than zero).",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll