Set Primitive Inventory Data

31 July 2019

  • C10 - added the selection optional parameter.

29 December 2018

  • C10 - added
setprimitiveinventorydata (Commands)
TypeCorrade progressive command
Commandsetprimitiveinventorydata
DescriptionThe setprimitiveinventorydata command can be used to update items inside a primitive's inventory by following the InventoryItem structure.
Permissionsinteract
Parametersgroup, password, item, entity, data
Last ChangesC10 - added

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

Command Required Parameters Required Corrade Permissions Example
setprimitiveinventorydata group, password, item, entity, data interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "setprimitiveinventorydata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // the name (or UUID) of the object containing the item
            "item", "8b05825c-a9cd-5df3-ec9e-56b4136dc9e0",
            // the item name (or UUID) inside the task inventory
            "entity", "peh",
            // searches in a 5m range
            "range", "5",
            "data", wasListToCSV(
                [
                    // sets description of item "peh" in task inventory
                    "Description", "peh",
                    // set the permissions to full permission
                    "Permission", "c--mvt------------c--mvtc--mvt"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.
selection attached, rezzed or all (default: all) Either attached, rezzed or all for selecting only primitives or objects attached to avatars, primitives or objects rezzed in-world or all primitives or objects respectively.

Note

  • This command can also be used to rename an inventory item via the Name data parameter.

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