Previous topic

appearance

Next topic

caps

This Page

assets

class pyogp.lib.base.assets.AssetWearable(assetID, assetType, data)
parse_data()
class pyogp.lib.base.assets.AssetManager(agent, settings=None)

The AssetManager class handles the assets of an Agent() instance

Sample implementations: Tests: test_assets.py

enable_callbacks()
get_asset(assetID)
request_asset(assetID, assetType, isPriority, callback=None, itemID=None)
Sends a TransferRequest to the sim for asset assetID with type assetType, will call back with the assetID and True with asset received or False if request failed. On successful request the asset is store in self.assets
send_AssetUploadRequest(TransactionID, Type, Tempfile, StoreLocal, AssetData=None)
Sends an AssetUploadRequest packet to request that an asset be uploaded to the to the sim
send_TransferRequest(TransferID, ChannelType, SourceType, Priority, Params)
sends a TransferRequest packet to request an asset to download, the assetID and assetType of the request are stored in the Params variable see assets.request_asset for example.
upload_script_via_caps(item_id, script)
upload_via_udp()
class pyogp.lib.base.assets.Asset(assetID, assetType, data)