Set Primitive Texture Data

20 August 2015

  • Release 8.43 - changed index to face and added the all and default parameters.

18 August 2015

  • Release 8.40 - added.
setprimitivetexturedata (Commands)
TypeCorrade progressive command
Commandsetprimitivetexturedata
DescriptionCorrade can set primitive sculpt data using the setprimitivetexturedata command.
Permissionsinteract
Parametersgroup, password, item
Last ChangesRelease 8.43 - changed index to face and added the all and default parameters.

Corrade can set primitive sculpt data using the setprimitivetexturedata command.

Command Required Parameters Required Corrade Permissions Example
setprimitivetexturedata group, password, item interact
llInstantMessage(CORRADE, wasKeyValueEncode(
        [
            // set the texture for the 4th face
            // on a primitive in a 4m range
            // specified by UUID
            "command", "setprimitivetexturedata",
            "group", llEscapeURL(GROUP),
            "password", llEscapeURL(PASSWORD),
            // the UUID of the primitive
            "item", "4bc141fd-1dcf-62bb-993a-75c8498cd66d",
            "range", 4,
            // the 4th face
            "face", 4,
            // just set the texture to a texture UUID
            "data", wasURLEscape(
                wasListToCSV(
                    [
                        "TextureID", "2b21acae-7aa5-ae18-3635-26d2a0924801"
                    ]
                )
            ),
            "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.
face The face number. The face number to set the texture on.
all Set the specified texture data for all faces.
default Set the specified texture data for the default texture.

secondlife/scripted_agents/corrade/api/progressive/commands/setprimitivetexturedata.txt ยท Last modified: 2017/02/22 18:28 (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.