Set Primitive Light Data

31 July 2019

  • C10 - added the selection optional parameter.

20 August 2015

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

The setprimitivelightdata command can be used to set the light data for a primitive.

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

The command takes as parameter in data a CSV list of members of the LightData structure.

Notes

  • If the Intensity parameter is set to 0, then the other parameters are ignored and the light for the object is switched off. Conversely, a primitive's lighting can be switched on by setting the Intensity parameter to a value between 0 and 1.

secondlife/scripted_agents/corrade/api/commands/setprimitivelightdata.txt ยท Last modified: 2022/11/24 07:46 by 127.0.0.1

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


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