31 July 2019

20 August 2015

The setprimitiveflexibledata command can be used to retrieve the set flexible data for a primitive.

CommandRequired ParametersRequired Corrade PermissionsExample
setprimitiveflexibledatagroup, password, item, datainteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // set the gravity and wind of a primitive
            // by UUID in a 4 meters range
            "command", "setprimitiveflexibledata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "4ad413bc-881f-4bd4-9d07-e9fb617cbf3b",
            "range", 4,
            "data", wasURLEscape(
                wasListToCSV(
                    [
                        "Gravity",
                        9.81,
                        "Wind",
                        5
                    ]
                )
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional ParametersPossible ValueDescription
rangeA number representing meters.The spherical radius from Corrade to search the primitive in.

The command sets members passed to the data key from the FlexibleData structure.

Notes