31 July 2019

18 August 2015

Corrade can query primitive sculpt details using the getprimitivesculptdata command.

CommandRequired ParametersRequired Corrade PermissionsExample
getprimitivesculptdatagroup, password, iteminteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "getprimitivesculptdata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "Sausage",
            // searches in a 5m range
            "range", "5",
            // returns the sculpt texture UUID
            // whether mirror has been set
            // whether the sculpt is inverted
            "data", wasListToCSV(
                [
                    "SculptTexture",
                    "Mirror",
                    "Invert"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);

The data parameter follows the SculptData structure and sub-structures.

Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.

Notes