Batch Attach In-World Primitives

31 July 2019

  • C10 - added the selection optional parameter.

6 March 2019

  • C10 - Added.
batchattachobject (Commands)
TypeCorrade progressive command
Commandbatchattachobject
DescriptionThe batchattachobject command allows Corrade to attach multiple in-world primitives.
Permissionsinventory
Parametersgroup, password, attachments
Last ChangesC10 - Added.

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

Command Required Parameters Required Corrade Permissions Example
batchattachobject group, password, attachments inventory
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:

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
Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.
rotation A quaternion The rotation to apply to the attached primitive once it has been attached.
selection attached, 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