Get Primitive Inventory Data

31 July 2019

  • C10 - added the selection optional parameter.

19 May 2015

  • Release 8.12 - range is now an optional parameter and not required to locate the item.
getprimitiveinventorydata (Commands)
TypeCorrade progressive command
Commandgetprimitiveinventorydata
DescriptionThe getprimitiveinventorydata command can be used to query items inside a primitive's inventory by following the InventoryItem structure.
Permissionsinteract
Parametersgroup, password, item, entity, data
Last ChangesRelease 8.12 - range is now an optional parameter and not required to locate the item.

The getprimitiveinventorydata command can be used to query items inside a primitive's inventory by following the InventoryItem structure.

Command Required Parameters Required Corrade Permissions Example
getprimitiveinventorydata group, password, item, entity, data interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // gets information about the
            // "sit" script inside a primitive
            // named "Chair.
            "command", "getprimitiveinventorydata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", wasURLEscape("Chair"),
            "range", 5,
            "entity", wasURLEscape("sit"),
            "data", wasListToCSV(
                [
                    "AssetType",
                    "CreatorID"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.

Notes