31 July 2019
selection
parameter.20 August 2015
setobjectmediadata (Commands) | |
---|---|
Type | Corrade progressive command |
Command | setobjectmediadata |
Description | The setobjectmediadata command can be used to set the media data from an object given a face to change. |
Permissions | interact |
Parameters | group , password , item , data , face |
Last Changes | Release 8.44 - added. |
The setobjectmediadata
command can be used to set the media data from an object given a face to change.
Command | Required Parameters | Required Corrade Permissions | Example |
---|---|---|---|
setobjectmediadata | group , password , item , data , face | interact | llInstantMessage(CORRADE, wasKeyValueEncode( [ // get the media data from a primitive // in a 5 meter range named "TV Screen 1.0" "command", "setobjectmediadata", "group", wasURLEscape(GROUP), "password", wasURLEscape(PASSWORD), "item", wasURLEscape("TV Screen 1.0"), "range", 5, // set the data on face 0 "face", 0, "data", wasURLEscape( wasListToCSV( [ "CurrentURL", "http://www.grimore.org", "AutoPlay", "True" ] ) ), "callback", wasURLEscape(URL) ] ) ); |
Optional Parameters | Possible Value | Description |
---|---|---|
range | A distance 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 takes parameters in data
from the MediaEntry structure.
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.For the copyright, license, warranty and privacy terms for the usage of this website please see the license, privacy, copyright and the plagiarism pages.