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

  • This command is the named plural form of the command attachobject.

secondlife/scripted_agents/corrade/api/commands/batchattachobject.txt ยท Last modified: 2020/09/04 07:22 (external edit)

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


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