Can an attachment animate another persons avatar?
|
Nepenthes Ixchel
Broadly Offended.
Join date: 6 Dec 2005
Posts: 696
|
12-19-2005 01:19
Is it possible to create an attachment that animates another persons avatar? (assuming they give permission)
I couldn't see see any function that looked like it could do it on the LSL wiki, but it would be nice to be able to do interactive animations (hug etc) with another person without requiring them to get an attachment with a script for their end.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
12-19-2005 01:21
to animate another person the script must request permission to trigger animation from them. a hug attachment has two scripts, one script to request permissions from the owner and the other from the target (as no script can hold permissions from two users).
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Nepenthes Ixchel
Broadly Offended.
Join date: 6 Dec 2005
Posts: 696
|
12-19-2005 05:11
From: Strife Onizuka to animate another person the script must request permission to trigger animation from them. a hug attachment has two scripts, one script to request permissions from the owner and the other from the target (as no script can hold permissions from two users). Does that mean the command to trigger an animation automatically affects the avatar that gave permission to that script? So I could have something like: Script1: get permission from target named in activation command ("/hug targetname"  send "go" to other scripts in same object play animation hug1 Script 2: When told "go" get permission from wearer play animation hug2
|
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
|
12-19-2005 05:18
From: Nepenthes Ixchel Does that mean the command to trigger an animation automatically affects the avatar that gave permission to that script? So I could have something like: Script1: get permission from target named in activation command ("/hug targetname"  send "go" to other scripts in same object play animation hug1 Script 2: When told "go" get permission from wearer play animation hug2 Yes
|
Nepenthes Ixchel
Broadly Offended.
Join date: 6 Dec 2005
Posts: 696
|
12-19-2005 06:46
Next question: how do I get another avatars key so I can request permissions? None of the key functions seem to allow this, so I must be missing something.
|
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
|
12-19-2005 06:58
From: Nepenthes Ixchel Next question: how do I get another avatars key so I can request permissions? None of the key functions seem to allow this, so I must be missing something. Kinda do it in reverse, probably. Do a key to name lookup on the avies in the immediate area and compare with the name you were just given.
|
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
|
12-19-2005 06:59
From: Nepenthes Ixchel Next question: how do I get another avatars key so I can request permissions? None of the key functions seem to allow this, so I must be missing something. Use a sensor (don't use sensorrepeat) that looks for that avatars name and then use llDetecedKey(0) to get the key.
|
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
|
12-19-2005 07:05
From: Zepp Zaftig Use a sensor (don't use sensorrepeat) that looks for that avatars name and then use llDetecedKey(0) to get the key. You could do that, but you'd need to be given the avatars full name with correct case to go look up it's key. Doing it my way you could type /hug Nep and assuming Nephilaine isn't standing next to you your comparison could still work. 
|
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
|
12-19-2005 07:14
From: Kris Ritter You could do that, but you'd need to be given the avatars full name with correct case to go look up it's key. Doing it my way you could type /hug Nep and assuming Nephilaine isn't standing next to you your comparison could still work.  If you wanted to, you could do my way as a second step to achieve what you wrote above, run the sensor to find the full name of a nearby avatar with a name starting with Nep, and then use that as input for the sensor again. 
|
Ephemeral Rainbow
Registered User
Join date: 28 Sep 2005
Posts: 8
|
12-19-2005 07:16
From: Kris Ritter You could do that, but you'd need to be given the avatars full name with correct case to go look up it's key. Doing it my way you could type /hug Nep and assuming Nephilaine isn't standing next to you your comparison could still work.  I've not tested it but I think a sensor only returns the first 16 matches, so searching through people near to you may result in the name not being found in busy places. An easy (for the user) might be to hug the nearest person infront of you by limiting your sensors range and radius. I already have a script like that if you want it.
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
12-19-2005 07:19
There are, inevitably, swings and roundabouts to the two methods described here. If you have a partial name system (/hug El to hug me for example) and then comparing the fragment to the detected names that works fine in most circumstances, but in a busy place I might not be the only El (although last I checked I'm the only Eloise) and more awkwardly I might not be one of the 16 closest avies, so I don't get detected. The longer name system /hug Eloise Pasteur requires you get my name right etc. but as long as I'm in sensor range you'll get my key from the sensor and be able to ask me if I want to be hugged. You could, with some smart coding, check for either and do different sensors - if you chop off "/hug " and check if there's a space in the remainder: if so, you assume it's the full name for example which isn't that hard to code for. Most huggers etc. go for the former approach - saves lots of typing. I make some control list objects, for them I go for the full name approach - they only have to type it in once to get the person on the list after all. I don't know anyone that uses the mixed approach, maybe that should be my next trick 
|
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
|
12-19-2005 07:20
From: Ephemeral Rainbow I've not tested it but I think a sensor only returns the first 16 matches, so searching through people near to you may result in the name not being found in busy places.
An easy (for the user) might be to hug the nearest person infront of you by limiting your sensors range and radius. I already have a script like that if you want it. Yes, the avie limit is true, and yes, would be a very good idea to limit your scan. I think the current hug attachments and the like that work this way assume you're within a short range and/or roughly facing the other avie.
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
12-19-2005 07:48
I much prefer Kris's method. The ability to type '/7hug kr' vs. '/7hug Kris Ritter' is a huge leap in usability. You just have to think through the situations when the avie isn't found and when there is more than one match.
_____________________
imakehuddles.com/wordpress/
|
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
|
12-19-2005 07:56
From: Keiki Lemieux I much prefer Kris's method. The ability to type '/7hug kr' vs. '/7hug Kris Ritter' is a huge leap in usability. You just have to think through the situations when the avie isn't found and when there is more than one match. If it is multiple matches, I'd present a dialogue with a button for each. "Who you wanna hug?!" 
|
Ephemeral Rainbow
Registered User
Join date: 28 Sep 2005
Posts: 8
|
12-19-2005 07:59
From: Keiki Lemieux I much prefer Kris's method. The ability to type '/7hug kr' vs. '/7hug Kris Ritter' is a huge leap in usability. You just have to think through the situations when the avie isn't found and when there is more than one match. Creating a dialog for the first 12 names found might be nice, though the character limit on the buttons would mean you'd need to store the actual sensor data in a list and there is still the possibility of two buttons with the same name.
|
Nepenthes Ixchel
Broadly Offended.
Join date: 6 Dec 2005
Posts: 696
|
12-20-2005 00:29
This is sounding complicated, but I'm determined to hug people!
If I get this working I'll post it on the LSL wiki so the next person to come along will have an easier time.
|
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
|
12-20-2005 00:32
From: Nepenthes Ixchel This is sounding complicated, but I'm determined to hug people! That's beautiful, and I hope your dream does come true. I was thinking of a game like Darwinia, or even some web browsers (Opera supports it, as does Firefox with extensions), where you can sketch out with mouse gestures to make actions happen. Would be nice to be able to do this in SL, draw a heart and then you hug! Typing in commands feels stiff to me.
|
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
|
12-20-2005 00:47
From: Nepenthes Ixchel This is sounding complicated, but I'm determined to hug people!
If I get this working I'll post it on the LSL wiki so the next person to come along will have an easier time. You could always just go buy one of the hug attachments that already exist  There are multitudes of them. Francis Chung makes what is probably the best (and one of the first, if not the first) inworld, and it can be bought at Launa Fauna's stores, one of which is in Midnight City.
|
Nepenthes Ixchel
Broadly Offended.
Join date: 6 Dec 2005
Posts: 696
|
12-20-2005 05:19
From: Kris Ritter You could always just go buy one of the hug attachments that already exist  I have a goal of being a 100% Nep made Avatar. 
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
12-20-2005 21:12
From: Torley Torgeson That's beautiful, and I hope your dream does come true.
I was thinking of a game like Darwinia, or even some web browsers (Opera supports it, as does Firefox with extensions), where you can sketch out with mouse gestures to make actions happen. Would be nice to be able to do this in SL, draw a heart and then you hug! Typing in commands feels stiff to me. That is possible - if llDetectedGrab works properly - It doesnt seem to post 1.8.. ==Chris
|