|
Bracken Back
Registered User
Join date: 29 Aug 2007
Posts: 39
|
04-11-2008 08:56
Hi all.
Small problem that I hope someone mignt be able to help me with.
I have an object with 2 animations in it. The animation is changed when the user clicks on the object. This all works fine and dandy, but the problem is, when I click on the object my head takes on the default animation of following the cursor whenever I move it. This, of course overrides all the head movements in the animation.
Is that a standard SL animation and can it be stopped with llStopAnimation. If not, anyone have some advice how I can work around it?
Thanks,
Bracken Back
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
04-11-2008 09:59
The head following your cursor is not an "animation," as it is dynamic. This is the default behavior when the currently-playing animation does not contain any keyframe data for the head. If you don't want the head to follow the cursor, you'll have to use a different animation which tells the head to do something. (Or alt-lock your camera target on some fixed point, which can be done by taking camera controls, but can be overridden by the user, so this method doesn't guarantee reliable results)
|
|
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
|
04-11-2008 10:01
The way animations behave is a function of the animation's priority and, I believe, its key frame - an animation does not necessarily affect all joints. So, in your case I suspect the animations are not affecting the neck joint. That said, I'm a lot better at scripting than I am animation and the folks over in the Animation Tips forum will explain it much better.  I am pretty sure that llStopAnimation is not going to help you as the effect you're seeing is a property of the animation you are using.
|
|
Bracken Back
Registered User
Join date: 29 Aug 2007
Posts: 39
|
04-11-2008 10:07
Strangely, the frames that are suppose to be playing are all head and neck movements. They are the ones being blocked. All the other body parts move quite nicely.
But, I will play with the priority setting. Possibly setting it as high as possible might help.
Bracken
|
|
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
|
04-11-2008 10:31
The 'stock' animation priorities are given here (see the section: Built-in Animation Priorities) 
|