Change Appearance

6 October 2016

  • Release 9.133 - The command now can take a path instead of a name.

4 November 2015

  • Release 9.36 - Added the deanimate optional parameter that stops all animations before the command executes.
changeappearance (Commands)
TypeCorrade progressive command
Commandchangeappearance
DescriptionThe changeappearance command can be used to wear and attach all the items in a folder.
Permissionsgrooming
Parametersgroup, password, folder
Last ChangesRelease 9.133 - The command now can take a path instead of a name.

The changeappearance command performs the following steps:

  • takes as input a folder name.
  • removes all the items being worn or attached to the avatar provided they are not body-parts that will not be replaced by the items int the input folder.
  • wears all the resulting items.

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

Command Required Parameters Required Corrade Permissions Example
changeappearance group, password, folder grooming
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 Parameters Possible Value Description
deanimate True or False Stop all non-Linden animations before executing the command.

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


secondlife/scripted_agents/corrade/api/progressive/commands/changeappearance.txt · Last modified: 2017/02/22 18:28 (external edit)

Access website using Tor


For the copyright, license, warranty and privacy terms for the usage of this website please see the license and privacy pages.