Get Object Media Data

31 July 2019

  • C10 - added the selection parameter.

20 August 2015

  • Release 8.44 - added.
getobjectmediadata (Commands)
TypeCorrade progressive command
DescriptionThe getobjectmediadata command can be used to retrieve the set media data from an object.
Parametersgroup, password, item, data
Last ChangesRelease 8.44 - added.

The getobjectmediadata command can be used to retrieve the set media data from an object.

Command Required Parameters Required Corrade Permissions Example
getobjectmediadata group, password, item, data interact
            // get the media data from a primitive
            // in a 5 meter range named "TV Screen 1.0"
            "command", "getobjectmediadata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", wasURLEscape("TV Screen 1.0"),
            "range", 5,
            "data", wasURLEscape(
            "callback", wasURLEscape(URL)
Optional Parameters Possible Value Description
range A range in meters. The spherical radius from Corrade to search the primitive in.
selection attached, rezzed or all (default: all) Either attached, rezzed or all for selecting only primitives or objects attached to avatars, primitives or objects rezzed in-world or all primitives or objects respectively.

The command queries the MediaEntry structure of a primitive and returns the media data for all the faces of the primitive.


  • Setting the selection parameter appropriately when it is known beforehand whether the sought object is either attached to an avatar or rezzed in-world can greatly improve the search time and speed up the command.

secondlife/scripted_agents/corrade/api/commands/getobjectmediadata.txt ยท Last modified: 2022/04/19 09:28 (external edit)

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key

For the copyright, license, warranty and privacy terms for the usage of this website please see the license, privacy, copyright and the plagiarism pages.