Batch Set Primitive Rotations for Multiple Objects

31 July 2019

  • C10 - added the selection optional parameter.

10 November 2018

  • Release 10.1 - added.
batchsetprimitiverotations (Commands)
TypeCorrade progressive command
Commandbatchsetprimitiverotations
DescriptionThe batchsetprimitiverotations command can be used to set the rotations for multiple primitives.
Permissionsinteract
Parametersgroup, password, item
Last ChangesRelease 10.1 - added.

The batchsetprimitiverotations command can be used to set the rotations of multiple primitives.

Command Required Parameters Required Corrade Permissions Example
batchsetprimitiverotations group, password, item interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "batchsetprimitiverotations",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", wasURLEscape(
                wasKeyValueEncode(
                    [
                        "Chair Leg",
                        // Quaternion in vector format.
                        "<10, 230, 113, 0>",
                        "45f8d053-6390-4fb0-963f-39850985574b",
                        "<15, 10, 20, 200>"
                    ]
                )
            ),
            "range", 5
        ]
    )
);
Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.
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

  • This command is a discrete plural of the setprimitiverotation command.
  • Note that this command will set primitive relative rotations unlike the batchsetobjectrotations command that sets the rotation of entire objects.

secondlife/scripted_agents/corrade/api/commands/batchsetprimitiverotations.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.