1 July 2020

6 October 2016

4 November 2015

The changeappearance command performs the following steps:

In other words, the changeappearance command can be used to wear all items in a folder by replacing all the currently worn items.

CommandRequired ParametersRequired Corrade PermissionsExample
changeappearancegroup, password, foldergrooming
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // wears all the items in
            // the CoolOutfit folder
            "command", "changeappearance",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // or just the UUID of an inventory folder
            "folder", "/My Inventory/CoolOutfit"
        ]
    )
);
Optional ParametersPossible ValueDescription
deanimateTrue or FalseStop all non-Linden animations before executing the command.
excludea list of inventory items by UUID or by pathAll the inventory items passed as a list to the exclude parameter will not be unequipped.
includea list of inventory items by UUID or by pathAll inventory items passed as a list to the include parameter will be added to the outfit aside the items found in the folder specified by the folder parameter.

This command is particularly useful to model bots that must change outfits: you will need to create folders containing the outfit and then issue this command with the folder path as parameter in order to change between outfits. So far, Corrade does not support multiple attachments per slot so when you make the outfit folders, make sure that they do not contain multiple attachments per slot and you should be fine.

Demonstration

[video: secondlife_scripted_agents_corrade_api_progressive_changeappearance.mp4]