Jump to content

mesh avatar expression hud HELP...


Larien Snowpaw
 Share

You are about to reply to a thread that has been inactive for 3873 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

hello everyone!

I´m doing my first complete avatar and I want to do it right but I have NO IDEA how to script anything and I need some way to change expressions on the avatar and make it blink or even talk when you type something.

I do know I have to separate the eyes and mouth from the head and make them different shapes for each state (sad, happy, open, close, etc...). 

If anyone can help me with some tutorial I can consult or a product from the marketplace to learn how to do this I will be very very happy and you will become my favorite person in this entire world.

 

here is a photo of the avi:

http://s841.photobucket.com/user/nme_id/media/pixel_chibi_001_zpsf1c4570d.jpg.html

http://s841.photobucket.com/user/nme_id/media/pixel_chibi_001_zps04be8b8b.jpg.html

 

THANKS!!! :matte-motes-grin:

Link to comment
Share on other sites

hello everyone!

I´m doing my first complete avatar and I want to do it right but I have NO IDEA how to script anything and I need some way to change expressions on the avatar and make it blink or even talk when you type something.

I do know I have to separate the eyes and mouth from the head and make them different shapes for each state (sad, happy, open, close, etc...). 

If anyone can help me with some tutorial I can consult or a product from the marketplace to learn how to do this I will be very very happy and you will become my favorite person in this entire world.

 

here is a photo of the avi:

http://s841.photobucket.com/user/nme_id/media/pixel_chibi_001_zpsf1c4570d.jpg.html

http://s841.photobucket.com/user/nme_id/media/pixel_chibi_001_zps04be8b8b.jpg.html

 

THANKS!!! :matte-motes-grin:

Link to comment
Share on other sites

Something like this would rely on communications between the head and HUD. I would reccommend checking out the llListen() function as well as the llRegionSayTo() function.


Here's a simple example of transmission, this would probably also work well for the HUD.

HUD Transmiter

integer c = -5345345345; //The channel that is transmitted to the head to change the texture or to tell the head what button we pressed.
default
{
    on_rez(integer s) { llResetScript(); }
    
    //The event raised when someone touches the script.
    touch_start(integer n)
    {
        //Make sure the person touching the buttons is the owner.
        if(llDetectedKey(0) == llGetOwner())
        {
            string name = llToLower(llGetLinkName(llDetectedLinkNumber(0)));// Check the name of the button that is pressed and force it to lower case and store in a variable for comparing later.
            //Send the command to the head on the channel specified at the top of the script
            llRegionSayTo(llGetOwner(),c,name);
        }
    }
}

 

Head/Expression Listener

integer c = -5345345345; //Receiving channel that is transmitted from the hud

integer face_link_number = LINK_ROOT;//The link number of the head prim
integer face_texture_face = ALL_SIDES;//The face that the texture would be applied

default
{
    on_rez(integer s) { llResetScript(); }
    state_entry()
    {
        //Set up the event for listening on the channel specified, in which case the channel is set at the top of the script in the variable "c"
        llListen(c,"","","");
    }
    
    //The event pulled when a message is received on the channel that is specified in the llListen() function
    listen(integer chan, string n, key i, string m)
    {
        if(chan == c)
            llSetLinkTexture(face_link_number,m,face_texture_face);

    }
}

 

  • Like 1
Link to comment
Share on other sites

thanks! that will be great to change the eyebrows texture ºwº


I will need some way to turn the alpha of the unactive heads to 100% and the active one to 0% for the mouth expressions too.


I found a very useful script on the marketplace for the blink animation I hope:
 https://marketplace.secondlife.com/p/Dvandva-Alpha-Sequencer-Script/2081373

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3873 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...