31 July 2019

6 March 2019

The batchattachobject command allows Corrade to attach multiple in-world primitives.

CommandRequired ParametersRequired Corrade PermissionsExample
batchattachobjectgroup, password, attachmentsinventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "batchattachobject",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "attachments", wasListToCSV(
                [
                    "Skull", "helmet",
                    "Mouth", "cigar"
                ]
            )
        ]
    )
);

The command returns a list of inventory UUID corresponding to the primitives that have been successfully attached. Here is a full list of attachment points:

PointDescription
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
Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.
rotationA quaternionThe rotation to apply to the attached primitive once it has been attached.
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.

Notes