11 September 2016

6 August 2015

The changeprimitivelink command can make Corrade link and unlink primitives, respectively objects.

CommandRequired ParametersRequired Corrade PermissionsExample
changeprimitivelinkgroup, password, iteminteract
llInstantMessage(CORRADE, wasKeyValueEncode(
    [
        "command", "changeprimitivelink",
        "group", wasURLEscape(GROUP),
        "password", wasURLEscape(PASSWORD),
        "range", 4,
        "action", "link",
        "item", wasURLEscape(
            wasListToCSV(
                [
                    "eabeef26-60f2-9eca-b7a4-0bea996aaa04", // root
                    "7b1947d5-4d10-9e3f-f5a6-6df60db0d9dd"
                ]
            )
        ),
        "callback", wasURLEscape(URL)
    ])
);
Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.
restructureTrue or False (default)When set to True, Corrade will unlink all the primitives supplied to the item parameter and then form a new object consisting only of the supplied primitives.
ParameterPossible ValueSecond ParameterPossible ValueDescription
actionlinkitemA list containing two or more primitive names or UUIDs.Link two or more primitives together.
delinkitemA list of one or more primitive names or UUIDs.Unlink one or more primitives.

The item parameter takes as value a list of primitives where the first item in the list is the root primitive in case of linking primitives together. It is possible to link a primitive to an object by supplying the name or key of the root and then the name or key of the primitive to link.

Notes