Create Notecard

27 May 2017

  • Release 9.164 - added the ability to embed items into notecards via the attachments parameter; added the ability to set permissions on created notecards via the permissions parameter.

3 January 2017

  • Release 9.153 - the command now requires entity to be set and allows creating a notecard by reading a text file from the local storage that Corrade is running off.

7 October 2016

  • Release 9.134 - the command now returns the asset UUID and the inventory UUID of the created notecard if successful.
createnotecard (Commands)
TypeCorrade progressive command
Commandcreatenotecard
DescriptionThe createnotecard command can be used to create a new notecard in Corrade's inventory.
Permissionsinventory
Parametersgroup, password, name, entity
Last ChangesRelease 9.164 - added the ability to embed items into notecards via the attachments parameter; added the ability to set permissions on created notecards via the permissions parameter.

The createnotecard command can be used to create a new notecard in Corrade's inventory.

Command Required Parameters Required Corrade Permissions Example
createnotecard group, password, name, entity inventory, system
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // creates a notecard called
            // "Hello" containing the
            // text "Good day!"
            "command", "createnotecard",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "entity", "text",
            "name", "Hello",
            "text", "Good day!"
        ]
    )
);
Optional Parameter Possible Value Description
permissions A string representing permissions in Corrade permission notation Set the permissions on the notecard.
description A string. The description of the notecard.
Parameter Possible Value Second Parameter Possible Value Description
entity text data The text contained in the notecard. Creates a notecard using the value passed to the optional parameter data as the notecard text and the value passed to the optional description parameter as the notecard description.
file path The path to a file on the local storage that Corrade is running off. Creates a notecard by reading the file passed to the optional path parameter and setting the notecard text to the contents of the file and optionally setting the description of the notecard to the value passed to the optional description parameter.
asset data Base64-encoded asset data such as the one returned by the download command. Creates a notecard from binary asset data.

Notes

  • The command will return the asset UUID and the inventory UUID of the created notecard if successful.
  • Corrade supports creating notecards with attachments: depending on the value passed to entity, you may upload notecards that contain embedded items however for the result to be valid, all attachments must be specified as a CSV list of inventory UUIDs or inventory paths passed to the attachments parameter.

secondlife/scripted_agents/corrade/api/progressive/commands/createnotecard.txt ยท Last modified: 2017/05/27 22:50 by Wizardry and Steamworks

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.