ll.ScaleByFactor

ll.ScaleByFactor(ScalingFactor: number) : number

Attempts to resize the entire object by ScalingFactor, maintaining the size-position ratios of the prims.

Resizing is subject to prim scale limits and linkability limits. This function can not resize the object if the linkset is physical, a pathfinding character, in a keyframed motion, or if resizing would cause the parcel to overflow. Returns a boolean (an integer) TRUE if it succeeds, FALSE if it fails.

Example

ll.ScaleByFactor(3.14)
{
  "def": "func",
  "desc": "Attempts to resize the entire object by ScalingFactor, maintaining the size-position ratios of the prims.\n\nResizing is subject to prim scale limits and linkability limits. This function can not resize the object if the linkset is physical, a pathfinding character, in a keyframed motion, or if resizing would cause the parcel to overflow.\nReturns a boolean (an integer) TRUE if it succeeds, FALSE if it fails.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlScaleByFactor",
  "name": "ScaleByFactor",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "number"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "ScalingFactor",
          "desc": "The multiplier to be used with the prim sizes and their local positions.",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll