ll.SetLinkTextureAnim

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

Animates a texture on the prim specified by LinkNumber, 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.SetLinkTextureAnim(
  3,
  11,
  0,
  4,
  2,
  3.14,
  3.14,
  3.14
)
{
  "def": "func",
  "desc": "Animates a texture on the prim specified by LinkNumber, 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/LlSetLinkTextureAnim",
  "name": "SetLinkTextureAnim",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "LinkNumber",
          "desc": "Link number (0: unlinked, 1: root prim, >1: child prims) or a LINK_* flag to effect",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Mode",
          "desc": "Bitmask of animation options.",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Face",
          "desc": "Specifies which object face to animate 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": "Specifies the animation duration, in frames (or radians for ROTATE).",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Rate",
          "desc": "Specifies the animation playback rate, in frames per second (must be greater than zero).",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll