Get Primitive Texture Data

18 August 2015

  • Release 8.40 - added.
getprimitivetexturedata (Commands)
TypeCorrade progressive command
Commandgetprimitivetexturedata
DescriptionCorrade can query primitive textures using the getprimitivetexturedata command.
Permissionsinteract
Parametersgroup, password, item
Last ChangesRelease 8.40 - added.

Corrade can query primitive textures using the getprimitivetexturedata command.

Command Required Parameters Required Corrade Permissions Example
getprimitivetexturedata group, password, item interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "getprimitivetexturedata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "Sausage",
            // searches in a 5m range
            "range", "5",
            // returns the sculpt texture UUID
            // whether mirror has been set
            // whether the sculpt is inverted
            "data", wasListToCSV(
                [
                    "DefaultTexture",
                    "FaceTextures"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);

The data parameter follows the TextureEntry structure and sub-structures.

Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.

When querying the FaceTextures, Corrade will return as CSV list of textures for each textured face preceded by the Index and a number representing the face number. This can then be used to set textures on the given face. In case all the faces have the same texture, then that texture can be obtained by querying DefaultTexture.


secondlife/scripted_agents/corrade/api/progressive/commands/getprimitivetexturedata.txt ยท Last modified: 2017/02/22 18:27 (external edit)

Access website using Tor


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