Jump to content

Stopped Mid-Animation. How?


Christina Halpin
 Share

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

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

Recommended Posts

Not in any controllable way, animations are played client-side, so what you observed was purely on your computer, somebody else watching would not necessarily see the same thing.

You could try playing around with Niran's pose maker in Black Dragon and see if there's any way in there of pausing or freezing an animation.

  • Like 1
Link to comment
Share on other sites

On 11/11/2023 at 5:26 AM, Christina Halpin said:

I am playing a lot of animations quickly, many overlapping. When I shut down all the ones on my screen, my avatar was stopped mid-animation.

this can happen when scripts stop animations that they never started

most animation scripters these days know not to do this, but sometimes with older scripts this can happen

example of bad animation scripting

default
{
    touch_start (integer detected)
    {  
       
        llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION);
    }
    
    run_time_permissions (integer perm)
    {
        if (perm & PERMISSION_TRIGGER_ANIMATION)
        {
            list anims = llGetAnimationList(llGetPermissionsKey());
            integer len = llGetListLength(anims);
            integer i;
            for ( ; i < len; ++i)
            {
                llStopAnimation(llList2Key(anims, i));         
            }
            llSleep(0.2);
            llStopAnimation("Stand");
            // to really mess things up
            // llStartAnimation( ...some random static pose ... );
            llSetTimerEvent(1.0);
        }
    }
    
    timer()
    {
        llRequestPermissions(llGetPermissionsKey(), PERMISSION_TRIGGER_ANIMATION);      
    }
}

with the Linden viewer this script results in ruth breathing, head follow and the Linden ruth stand animations don't cycle (just get the first default ruth stand animation. Earlier versions of Linden viewer would not play anything on llStopAnimation("Stand") would get a static pose of the last animation frame playing in the state "Standing", some TPVs may still do this dunno)

note that any animation AO/HUD/etc will still attempt to start their own scripted animations, this script just attempts to stop them all

  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 214 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...