Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: Kubold on April 20, 2014, 05:09:46 AM

Title: Animator Cross Fade absolute blend value
Post by: Kubold on April 20, 2014, 05:09:46 AM
Hi,
Is it possible to add an absolute blend value in Animator Cross Fade?

Right now it uses a percentage of previous animation as blend-in time. This doesn't make any sense, because you end up with different blend every time (sometimes drastic difference - for ex. blending to a fast attack from 10 second-long idle, or from 0.8s hit). If it HAS to be percentage of some animation, it would make much more sense to use percentage of the next animation, not previous.

Thanks!
Title: Re: Animator Cross Fade absolute blend value
Post by: Kubold on April 23, 2014, 02:58:37 AM
I have a controller with like 400 animations in it. They pretty much must all blend with each other. Every animation with every other animation. That gives me IMPOSSIBLE amount of transitions to configure manually. I need to have a way to just call in the animation state through PlayMaker, with a proper blend time for each animation.

In other words - I need Mecanim to behave like Legacy. I thought Animator Cross Fade is the thing, but i need to be able to type in the blend-in lenght. The solution where blend lenght is a percentage of previous animation is just wrong, because blend is always different, however the animation you blend-in to is always the same.

If somebody already knows, that this is not possible, please tell me, I'll switch to Legacy.

Thanks!
Title: Re: Animator Cross Fade absolute blend value
Post by: Kubold on May 04, 2014, 02:51:06 PM
Bump!

jeanfabre what say you? :)
Title: Re: Animator Cross Fade absolute blend value
Post by: jeanfabre on May 06, 2014, 07:22:09 AM
:) going through the back log...

I am not really knowledgeable enough on this. Do you have a concrete simple example fo this so that I can see what needs tdoing to make it absolute?

 Have you asked on Unity forum and UA? if you find a script that solve your need I'll make it into PlayMaker, not a problem.

-- you seem to confuse "blend" and "transitionDuration". Are you not looking for Animation.blend() function instead?

I can't see anywhere in Unity doc the mention of percentage for the Crossfade function. the transitionDuration is an absolute time, not related to the animation content or length ( as far as I can tell).

bye,

 Jean
Title: Re: Animator Cross Fade absolute blend value
Post by: Kubold on May 06, 2014, 10:44:10 AM
Hmm, Yes I thought blend time and transition time were the same thing. They do the same thing, don't they?

Anyway, when I get home later today, I'll try to explain what I mean with screenshots. Thanks for answering :)