|
WindyWeather Vanalten
Registered User
Join date: 27 Nov 2006
Posts: 53
|
03-09-2008 01:02
An object called the Uber Greeter obtains the UUID of a persons profile picture and displays it. Apparently the object is doing a http request. I've not seen any ll scripting call that gives this info, so it must be an http request.
Can someone point me to the url where this is provided?
I'd like to enhance an object I sell to use profile pictures in a new and different way rather than just displaying the photo of the last person that came within range of the greeter.
I've done some searching and have turned up nothing.
Thanks much, - windy
|
|
Walker Moore
Fоrum Unregular
Join date: 14 May 2006
Posts: 1,458
|
03-09-2008 01:25
Hmm, not sure how this script is doing it, and the only way I can think of would require your own website and a server-side script. Ie. 1) Get the <avatarkey> of the avatar whose profile picture you require. 2) Query a PHP script on your website using that <avatarkey>. 3) PHP script visits: http://world.secondlife.com/resident/<avatarkey> 4) Parses the page, and extracts and returns the UUID of the profile picture contained within. It's in this format: http://secondlife.com/app/image/<UUID>/1 5) Use llSetTexture with the UUID to apply the the profile picture to a prim.
_____________________
It's only a forum, no one dies.
|
|
Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
|
03-09-2008 03:01
The full Open Source script that does this can be found at http://wiki.secondlife.com/wiki/Random_AV_Profile_ProjectorThe specific elements you will be interested in are: string URL_RESIDENT = "http://world.secondlife.com/resident/"; lHTTPRequest( URL_RESIDENT + (string)AVKey,[HTTP_METHOD,"GET"],"");
and the http_response event. These together will give you the basis of what you need. You will ofc have to adapt for your new innovation  Good luck!
_____________________
http://wiki.secondlife.com/wiki/User:debbie_Trilling
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
03-09-2008 05:04
and there may be a new option in the updated media stream... but that's fairly new, so it's likely a variation on debbies script... make sure you note in the referenced thread that the usage is ARable... silly bit true.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
WindyWeather Vanalten
Registered User
Join date: 27 Nov 2006
Posts: 53
|
Thanks a bunch... Got a prototype working...
03-09-2008 14:08
Thanks, Debbie. I've got a prototype working. I'll be sure and leave your header comment at the top of what I do. - Windy
|