Get Primitive Light Data

31 July 2019

  • C10 - added the selection optional parameter.

20 August 2015

  • Release 8.44 - added.
getprimitivelightdata (Commands)
TypeCorrade progressive command
Commandgetprimitivelightdata
DescriptionThe getprimitivelightdata command can be used to retrieve the set light data from a primitive.
Permissionsinteract
Parametersgroup, password, item, data
Last ChangesRelease 8.44 - added.

The getprimitivelightdata command can be used to retrieve the set light data from a primitive.

Command Required Parameters Required Corrade Permissions Example
getprimitivelightdata group, password, item, data interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // get the light data from a primitive
            // in a 4 meter range named "Bulb"
            "command", "getprimitivelightdata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "Bulb",
            "range", 4,
            "data", wasURLEscape(
                wasListToCSV(
                    [
                        "Intensity",
                        "Radius"
                    ]
                )
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional Parameters Possible Value Description
range A number representing meters. The spherical radius from Corrade to search the primitive in.

The command queries the LightData structure of a primitive.


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