Change Input/Output Filters

5 February 2015

  • Release 7.63 - added.
filter (Commands)
TypeCorrade progressive command
Commandfilter
DescriptionThe filter command can be used to change Corrade's IO filters dynamically, thereby overriding the settings in Corrade's configuration file Corrade.ini, as well as to retrieve the current filters.
Permissionsfilter
Parametersgroup, password, action
Last ChangesRelease 7.63 - added.

The filter command can be used to change Corrade's IO filters dynamically, thereby overriding the settings in Corrade's configuration file Corrade.ini, as well as to retrieve the current filters.

Command Required Parameters Required Corrade Permissions Example
filter group, password, action filter
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Get the current set input filters.
            "command", "filters",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "action", "get",
            "type", "input",
            "callback", wasURLEscape(URL)
        ]
    )
);
Parameter Possible Value Additional Parameter Possible Value Description
action get type input Retrieves the currently set input filters.
output Retrieves the currently set output filters.
set input A CSV list of input filters. Sets the input filters.
output A CSV list of output filters. Sets the output filters.

When you want to set the filters, you can set both input and output filters at the same time by specifying both input and output parameters. For example, the following command will set RFC3986 and VIGENERE encryption for both input and output filters:

llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Get the current set input filters.
            "command", "filters",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "action", "set",
            "input", wasListToCSV(["rfc3986", "vigenere"]),
            "outout", wasListToCSV(["vigenere", "rfc3986"]),
            "callback", wasURLEscape(URL)
        ]
    )
);

For more information on Corrade's IO filters, please see the filters tutorial and you can find a list of implemented filters on the API page.


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