27 May 2017
getassetdata (Commands) | |
---|---|
Type | Corrade progressive command |
Command | getassetdata |
Description | The getassetdata command can be used to query an item following the Asset structures. |
Permissions | inventory |
Parameters | group , password , type , data |
Last Changes | Release 9.164 - added. |
The getassetdata
command can be used to query an item following the Asset structures.
Command | Required Parameters | Required Corrade Permissions | Example |
---|---|---|---|
getassetdata | group , password , type , data | interact | llInstantMessage(CORRADE, wasKeyValueEncode( [ // Get the position of a landmark // in Corrade's inventory. "command", "getassetdata", "group", wasURLEscape(GROUP), "password", wasURLEscape(PASSWORD), "item", "/My Inventory/Landmarks/Palace", "type", "Landmark", "data", "Position", "callback", wasURLEscape(URL) ] ) ); |
Parameter | Possible Value | Queried Data Structure | Download from |
---|---|---|---|
type | Texture | AssetTexture | Asset server |
Sound | AssetSound | ||
Animation | AssetSound | ||
Clothing | AssetClothing | ||
Bodypart | AssetBodypart | ||
Landmark | AssetLandmark | ||
Gesture | Gesture | ||
Notecard | AssetNotecard | Inventory | |
LSLText | AssetScriptText | Inventory | |
CallingCard | AssetCallingCard | Inventory |
item
parameter can be set to either a path to an inventory item or to an asset UUID. In the latter case, asset data can be retrieved from any asset on the grid provided that the asset can be retrieved from the asset server. The same rules for retrieving assets directly from the asset server apply as for the download command.