11 June 2016

14 May 2015

10 May 2015

Corrade can query multiple primitives en-block using the getprimitvesdata command.

CommandRequired ParametersRequired Corrade PermissionsExample
getprimitivesdatagroup, password, entity, datainteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Get the name, position and overhead text
            // of all the primitives in a parcel on
            // the current region pin-pointed by the
            // specified vector position.
            "command", "getprimitivesdata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "entity", "parcel",
            "position", wasURLEscape("<128, 32, 16>"),
            // returns the position and primitive text
            "data", wasListToCSV(
                [
                    "Properties.Name",
                    "Position",
                    "Text"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);

The data parameter follows the libopenmetaverse Primitive structure and sub-structures.

ParameterPossible ValueSub-ParameterPossible ValueDescription
entityrangerangeA range in meters.Retrieves primitive data for all primitives in the specified range where the range is the length of a versor from Corrade's current position describing a sphere.
worldrangeA range in meters.Retrieves primitive data for all primitives that are rezzed in-world (not attached to any avatar) in a given range.
parcelpositionAn LSL 3D Vector.Retrieves primitive data for all primitives on the parcel pin-pointed by position.
regionRetrieves primitive data for all primitives on the current region.
avataragentEither an avatar UUID passed to agent or the firstname passed to firstname and lastname passed to lastnameRetrieves primitive data for all primitives worn on the specified avatar.
firstname
lastname

As the plural of the getprimitivedata command, the getprimitivesdata command will get the field specified in the data parameter for all primitives that Corrade finds - based on the entity specified and its sub-parameters.

Remarks

The getprimitivesdata command is relatively-speaking unreliable compared to, say getprimitiveowners that retrieves the owners of all the primitives on a parcel or region. However, contrasted to getprimitiveowners, the getprimitivesdata command can be used without requiring any permissions. In other words, getprimitivesdata would be the only way to account for the owners of primitives on a parcel if land permissions cannot be granted to Corrade.

Notes