31 July 2019

13 January 2019

The batchupdateprimitiveinventory command can add or remove items in batches from a primitive's inventory.

CommandRequired ParametersRequired Corrade PermissionsExample
batchupdateprimitiveinventorygroup, password, item, entity, actioninteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Add two items from the bot's
            // inventory to a primitive named "Package".
            "command", "batchupdateprimitiveinventory",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // Or UUID...
            "item", "Package",
            "range", 5,
            "entity", wasURLEscape(
                wasListToCSV(
                    [
                        "/My Inventory/Animations/Fit",
                        "80a7674c-7dfe-473c-965e-f35329e75d98"
                    ]
                )
            ),
            "action", "add"
        ]
    )
);
Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.
selectionattached, 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.
ParameterPossible ValueOptional ParameterDescription
actionaddAdd a list of items to the primitive inventory.
removeRemove a list of items from the primitive.
takeRemove a list of items from the primitive and place them in Corrade's inventory.
folderThe path to a folder or the UUID of the folder to which Corrade should take the items to.

Depending on context, entity can be:

Note