28 February 2015

28 February 2015

The getviewereffects lists all the currently tracked viewer effects.

CommandRequired ParametersRequired Corrade PermissionsExample
getviewereffectsgroup, password, effectinteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Gets all active LookAt viewer effect.
            "command", "getviewereffects",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "effect", "Look",
            "callback", wasURLEscape(URL)
        ]
    )
);

With the possible values for the parameter effect:

ParameterPossible Value
effectLook
Point
Sphere
Beam

The currently tracked viewer effects will be returned via the callback as a CSV list referenced by the data key:

EffectReturnDescription
LookeffectAn UUID referencing the effect that can be used with the setviewereffect and deleteviewereffect command.
sourceThe UUID of the source.
targetThe UUID of the target.
offsetAn LSL positional vector describing an offset.
typeThe LookAt type.
PointeffectAn UUID referencing the effect that can be used with the setviewereffect and deleteviewereffect command.
sourceThe UUID of the source.
targetThe UUID of the target.
offsetAn LSL positional vector describing an offset.
typeThe PointAt type.
SphereeffectThe UUID of the effect.
offsetAn LSL positional vector describing an offset.
colorAn LSL vector representing a color.
alphaAn value in the interval $[0, 1]$ representing the color alpha.
durationThe duration that the original effect was set with.
terminationA date and time when the effect is expected to terminate.
BeameffectThe UUID of the effect.
offsetAn LSL positional vector describing an offset.
sourceThe UUID of the source.
targetThe UUID of the target.
colorAn LSL vector representing a color.
alphaAn value in the interval $[0, 1]$ representing the color alpha.
durationThe duration that the original effect was set with.
terminationA date and time when the effect is expected to terminate.