Set a Primitive Shape

20 August 2015

  • Release 8.44 - Corrade now applies data to the already existing shape if type is not specified.

18 August 2015

  • Release 8.40 - added.
setprimitiveshapedata (Commands)
TypeCorrade progressive command
Commandsetprimitiveshapedata
DescriptionCorrade can alter the shape of existing in-world primitives by using the setprimitiveshapedata command.
Permissionsinteract
Parametersgroup, password, item
Last ChangesRelease 8.44 - Corrade now applies data to the already existing shape if type is not specified.

Corrade can alter the shape of existing in-world primitives by using the setprimitiveshapedata command.

Command Required Parameters Required Corrade Permissions Example
setprimitiveshapedata group, password, item interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // set the primitive named "Ball"
            // in a 2m range to a sphere shape
            "command", "setprimitiveshapedata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "Ball",
            "range", 2,
            "type", "sphere"
        ]
    )
);
Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.
data A CSV list of members from the ConstructionData The data to construct the primitive by.
type Please see the Corrade built-in body types. The initial body to start from, after which the parameters in data get applied. If you do not supply this parameter then data will have default values.

There are three cases depending on whether data or type are specified:

  • In case only type is specified, the primitive shape will be altered to match the specified type.
  • In case only data is specified, then Corrade will read the current shape data from the primitive and then apply the parameters specified in data.
  • If both type and data is specified, then Corrade will start off from the specified body type and then alter that body by setting its parameters to those specified in data.

secondlife/scripted_agents/corrade/api/progressive/commands/setprimitiveshapedata.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.