31 July 2019

20 August 2015

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

CommandRequired ParametersRequired Corrade PermissionsExample
getprimitivelightdatagroup, password, item, datainteract
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 ParametersPossible ValueDescription
rangeA number representing meters.The spherical radius from Corrade to search the primitive in.

The command queries the LightData structure of a primitive.

Notes