31 July 2019

25 February 2017

The exportoar command can be used to export an object (including those attached to avatars), along with all the necessary textures to an OAR (OpenSim ARchive).

CommandRequired ParametersRequired Corrade PermissionsExample
exportoargroup, password, item, entityinteract, system (if path is specified)
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Export an object named "Mouse"
            "command", "exportoar",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "entity", "object",
            // NOTE: or an UUID can be passed
            // NOTE: this must be the name or
            // the UUID of an object (a root primitive).
            "item", "Mouse",
            "range", 5
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.
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.
Optional ParameterPossible ValueDescription
pathA path-name ending in a file name (e.g.: C:\\Data\\OARs\\Mouse.oar, or /mnt/data/Mouse.oar)If a path is specified, then the asset will be saved to the file name indicated by the path.

In case the path optional parameter is not specified, then the OAR will be created, encoded as a Base64 string, then URI escaped and then placed as the value to the data key from the callback. If the path parameter is specified, then the data will be saved to the indicated path.

Remarks