Set a Primitive Shape

31 July 2019

  • C10 - added the selection optional parameter.

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:

Notes