Set Object Scale (Size)

31 July 2019

  • C10 - added the selection parameter.

19 May 2015

  • Release 8.12 - added.
setobjectscale (Commands)
TypeCorrade progressive command
Commandsetobjectscale
DescriptionThe setobjectscale command can be used to set the scale of an object (in a regional frame) by resizing all primitives.
Permissionsinteract
Parametersgroup, password, item, scale
Last ChangesRelease 8.12 - added.

The setobjectscale command can be used to set the scale of an object (in a regional frame) by resizing all primitives.

Command Required Parameters Required Corrade Permissions Example
setobjectscale group, password, item, scale interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // set the scale of the object
            // chair to <5, 5, 0> for all
            // primitives, uniformly
            "command", "setobjectscale",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "Chair",
            "range", 5,
            "scale", wasURLEscape("<5, 5, 0>"),
            "uniform", "True"
        ]
    )
);
Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.
uniform Either True or False Whether the primitives will be scaled uniformly.
selection attached, rezzed or all (default: all) Either attached, rezzed or all for selecting only primitives or objects attached to avatars, primitives or objects rezzed in-world or all primitives or objects respectively.

Notes

  • Setting the selection parameter appropriately when it is known beforehand whether the sought object is either attached to an avatar or rezzed in-world can greatly improve the search time and speed up the command.

secondlife/scripted_agents/corrade/api/commands/setobjectscale.txt ยท Last modified: 2020/09/04 06:44 (external edit)

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the copyright, license, warranty and privacy terms for the usage of this website please see the license, privacy, copyright and the plagiarism pages.