Attach a Primitive from Inventory

6 October 2016

  • Release 9.133 - The command now can take a path instead of a name.
attach (Commands)
TypeCorrade progressive command
Commandattach
DescriptionThe attach command allows Corrade to attach multiple (or only one) objects from inventory to their attachment points.
Permissionsgrooming
Parametersgroup, password, attachments
Last ChangesRelease 9.133 - The command now can take a path instead of a name.

The attach command allows Corrade to attach multiple (or only one) objects from inventory to their attachment points.

Command Required Parameters Required Corrade Permissions Example
attach group, password, attachments grooming
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "attach",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // skull, mouth are attachment points (see documentation)
            // Helmet and Milk Bottle are object names in the inventory
            // ... You can also use UUIDs for inventory items.
            "attachments", wasListToCSV(
                [
                    "Skull", "/My Inventory/Objects/Helmet",
                    "Mouth", "/My Inventory/Fun Stuff/Milk Bottle"
                ]
            )
        ]
    )
);

The attachment parameter accepts pairs of attachment points and object in inventory. Here is a full list of attachment points:

Point Description
DefaultRight hand if object was not previously attached
ChestChest
SkullSkull
LeftShoulderLeft shoulder
RightShoulderRight shoulder
LeftHandLeft hand
RightHandRight hand
LeftFootLeft foot
RightFootRight foot
SpineSpine
PelvisPelvis
MouthMouth
ChinChin
LeftEarLeft ear
RightEarRight ear
LeftEyeballLeft eyeball
RightEyeballRight eyeball
NoseNose
RightUpperArmRight upper arm
RightForearmRight forearm
LeftUpperArmLeft upper arm
LeftForearmLeft forearm
RightHipRight hip
RightUpperLegRight upper leg
RightLowerLegRight lower leg
LeftHipLeft hip
LeftUpperLegLeft upper leg
LeftLowerLegLeft lower leg
StomachStomach
LeftPecLeft pectoral
RightPecRight pectoral
HUDCenter2HUD Center position 2
HUDTopRightHUD Top-right
HUDTopHUD Top
HUDTopLeftHUD Top-left
HUDCenterHUD Center
HUDBottomLeftHUD Bottom-left
HUDBottomHUD Bottom
HUDBottomRightHUD Bottom-right
NeckNeck
RootAvatar Center

Demonstration

Notes

  • Please note that SecondLife terminology distinguishes between "wearables" and "attachments" where "wearables" are clothing items and body parts such as "Skirt, Shirt, Undershirt, Skin, Shape…" and "attachments" are objects. In case you are looking to wear clothing or a body part, then please use the wear command.
  • If you are looking to change the entire appearance of the bot, as in, changing an outfit, then please use the changeappearance command.

secondlife/scripted_agents/corrade/api/commands/attach.txt · Last modified: 2022/11/24 07:45 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


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