Change font size
It is currently Sat Dec 15, 2018 1:49 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 4 posts ]
Author Message
 Post subject: OnePose - the most basic of pose scripts
PostPosted: Mon May 12, 2008 11:11 am 
User avatar

Joined: Mon May 12, 2008 10:04 am
Posts: 1
Used this to test that pose stands, balls, and furniture are working great. Still no default animations though:

{L_CODE}:
// The most basic of pose scripts

// change to the name of animation contained within your sittable object
string pose = "tpose2";

// change to x,y,z offset of object center where you want to appear (never all 0)
vector target = <0.0, 0.0, 1.5>;

// optional sit text to appear over object
string text = "T-Pose";

default {
    state_entry()
    {
        llSitTarget(target, ZERO_ROTATION);
        llSetSitText(text);
        llSetText(text,<1.0,0.0,0.0>,1.0);
    }

    changed(integer change)
    {
        if (change & CHANGED_LINK)
        {
            if (llAvatarOnSitTarget() != NULL_KEY)
            {
                llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
                llStopAnimation("sit");
                llStartAnimation(pose);
                llSetText("",<1.0,0.0,0.0>,1.0);
            }
            else
            {
                llStopAnimation(pose);
                llSetText(text,<1.0,0.0,0.0>,1.0);
            }
        }
    }
}


Attached is a BVH 'tpose2' animation to go with it (still working on getting it into standard inventory set). As with any pose animation, save this as a tpose2.bvh file, upload with SL client, set priority to 4, turn loop on, turn in and out to 0.0 (if you like).


Attachments:
File comment: Slightly different T-Pose for making pose stands.
tpose2.zip [1.03 KiB]
Downloaded 637 times

_________________
---
Mo Hax
http://imohax.com
Top
 Profile  
 
 Post subject: Re: OnePose - the most basic of pose scripts
PostPosted: Sat May 24, 2008 11:13 am 

Joined: Wed May 14, 2008 3:24 pm
Posts: 16
Hi,
I checked out the sit pose script in version 0.5.6 and saw that everyone is using priority 4 animations in order to get around the linden "sit" pose. Now I see in the changed event you have that stopped but actually it isnt stopped. Instead I did llStopAnimation("1a5fe8ac-a804-8a5d-7cbd-56bd83184568"); which is the key of the "sit" animation. Using the key enabled me to import at priority 3 and still cancel the sit. This allows me to create changing animations and synced animations. I was lead animator on several projects for the electric sheep in sl and have imported over 1200 animations there. If anyone needs anim help in opensim Id be glad to help. Take care!


Top
 Profile  
 
 Post subject: Re: OnePose - the most basic of pose scripts
PostPosted: Wed Jul 02, 2008 5:09 pm 

Joined: Wed Jul 02, 2008 5:05 pm
Posts: 2
The code with modifications and alpha:

{L_CODE}:
// The most basic of pose scripts

// change to the name of animation contained within your sittable object
string pose = "tpose2";

// change to x,y,z offset of object center where you want to appear (never all 0)
vector target = <0.0, 0.0, 1.5>;

// optional sit text to appear over object
string text = "sit";

default {
    state_entry()
    {
        llSitTarget(target, ZERO_ROTATION);
        llSetSitText(text);
        llSetText(text,<1.0,0.0,0.0>,1.0);
        llSetAlpha(1.0, ALL_SIDES);
    }

    changed(integer change)
    {
        if (change & CHANGED_LINK)
        {
            if (llAvatarOnSitTarget() != NULL_KEY)
            {
                llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
                llStopAnimation("1a5fe8ac-a804-8a5d-7cbd-56bd83184568");
                llStartAnimation(pose);
                llSetText("",<1.0,0.0,0.0>,1.0);
                llSetAlpha(0, ALL_SIDES);
            }
            else
            {
                llStopAnimation(pose);
                llSetText(text,<1.0,0.0,0.0>,1.0);
                llSetAlpha(1.0, ALL_SIDES);
            }
        }
    }
}


Top
 Profile  
 
 Post subject: Re: OnePose - the most basic of pose scripts
PostPosted: Mon Sep 15, 2008 6:02 pm 

Joined: Fri Sep 12, 2008 4:08 pm
Posts: 8
Can someone tell me why this doesn't work for me? I must have something set up wrong for my scripts but not sure what?

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 4 posts ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net