open mouth
|
Casandra Kumsung
Registered User
Join date: 6 Sep 2006
Posts: 93
|
12-31-2009 23:25
I got the mouth to open but how do you keep it open. I have a apple with the open mouth script and want the mouth to stay open.
|
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
|
01-01-2010 00:23
This is really one for 'Scripting Tips' but what the heck: default { attach(key avatar) { llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer value) { if (value & PERMISSION_TRIGGER_ANIMATION) { llStartAnimation("express_open_mouth"); llSetTimerEvent(1); // Try 1.2 or even 1.5 - the required time varies for facial expressions } } timer() { llStopAnimation("express_open_mouth"); llStartAnimation("express_open_mouth"); llStartAnimation("bvh animation"); // Additional animation file name if required } }
Works for me.
|
Abraxes Binder
Registered User
Join date: 23 May 2008
Posts: 205
|
rant..
01-02-2010 02:01
cant really understand the way lindens implements these expressions - the current 'auto-timed' expressions needs hacks like the one abowe in order to run over a user determined timespan. Eg , an event is retriggered over and over == lag Why the beep dont they have persistent expressions plus a 'cancel-call' that would reset to default expression == 2 events one for initiation, one for cancel :/ A re-think/ re-design should take place
BR
_____________________
BR ab
|
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
|
01-02-2010 02:14
I agree that would be useful. Avatars really seem to come alive with timed/looped and overlapped expressions so I enjoy mixing and matching facial expressions on top of animations to that effect. An efficient system for applying them would be great. Also a better range of expressions would be good. The greater number of built-in expressions and emotes are pretty bad.
I also think they should do away with adding expressions to animations on upload. One or two seconds of gurning at the beginning of a loop isn't much use. In fact it's a pretty redundant feature in my opinion. Often the animation will not even have loaded before the expression/emote has played out.
|
Casandra Kumsung
Registered User
Join date: 6 Sep 2006
Posts: 93
|
Thanks
01-04-2010 12:26
I thought it would be some kind of a loop. Seemed a bit redundant and lag producing though.
|
Casandra Kumsung
Registered User
Join date: 6 Sep 2006
Posts: 93
|
It worked sort of
01-11-2010 13:54
it gives the error animation express_open_mouth not found. I thought this as a built in animation if not where do I get it?
|
Casandra Kumsung
Registered User
Join date: 6 Sep 2006
Posts: 93
|
thanks
01-13-2010 11:30
From: Ephraim Kappler This is really one for 'Scripting Tips' but what the heck: default { attach(key avatar) { llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer value) { if (value & PERMISSION_TRIGGER_ANIMATION) { llStartAnimation("express_open_mouth"); llSetTimerEvent(1); // Try 1.2 or even 1.5 - the required time varies for facial expressions } } timer() { llStopAnimation("express_open_mouth"); llStartAnimation("express_open_mouth"); llStartAnimation("bvh animation"); // Additional animation file name if required } }
Works for me. A "stupid" question. I put it in with the [ PHP} beging and end and it calls it an error. I take it out and it works. What is the PHP and is it needed?
|
Laurie Stilman
Registered User
Join date: 11 Apr 2006
Posts: 45
|
01-13-2010 12:02
The PHP tags are markup for the forums, not part of the script -- they are meant to make code posted here more readable by using a mono-spaced font and preserving indentation, etc but unfortunately that part of the forum functionality is broken as far as I can tell... 
|
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
|
01-14-2010 03:51
From: Laurie Stilman The PHP tags are markup for the forums, not part of the script ... If you use Firefox, follow the link for Greasemonkey at the bottom of Void Singer's signature in her forum profile. This will correct the mark-up issue, enabling you to view code on the forums in a graphically correct manner with the monospace font, indentations and a dinky blue box to separate it from other text. I find this very, very helpful. It's also easier on the eye if, like me, you need to stare at the same snippet for hours on end.
|
Laurie Stilman
Registered User
Join date: 11 Apr 2006
Posts: 45
|
01-14-2010 08:50
You know, I'm sure I'd seen that at some point but, for some reason, I hadn't installed it. Now I have -- much better! Thanks for drawing my attention back to it?
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-15-2010 00:44
heh that's the reason I've also taken to highlighting the entire actual code inside the php tags (even though that wouldn't be valid in normal BBcode) if I'm not sure the user is familiar with our goofy forum software. it does have an annoying side effect though, in that it throws and extra line break at the end of every line when you cut and paste... but it doesn't hurt the code so :  hrug::
_____________________
| | . "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... | - 
|