Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: knowhere on October 04, 2011, 07:35:05 PM

Title: Dynamic Animation Blending
Post by: knowhere on October 04, 2011, 07:35:05 PM
Hey everyone...
I'm trying to puzzle out how to dynamically blend between 2 specific animations at set points in the animations.
My setup: I have 2 sliders controlling the position of two animations on one object. When I scrub the slider on one, it progresses through animation one, and likewise slider two scrubs through animation 2. Is there a way to make it so that when I push both sliders, it progresses and blends the two animations?
Title: Re: Dynamic Animation Blending
Post by: pandigital on October 05, 2011, 05:37:48 AM
Does this help ?

http://unity3d.com/support/documentation/ScriptReference/AnimationState.AddMixingTransform.html
Title: Re: Dynamic Animation Blending
Post by: Gida on December 06, 2015, 04:19:14 PM
Sorry for bumping this, but I ran into the same Problem. Does anybody have a clue?

Greetz
Title: Re: Dynamic Animation Blending
Post by: mdotstrange on December 06, 2015, 06:56:09 PM
Sounds like you want to use Blend Tree's- Unity has some pretty good doc's/tutorials on them

http://docs.unity3d.com/Manual/class-BlendTree.html
Title: Re: Dynamic Animation Blending
Post by: Gida on December 10, 2015, 05:40:21 AM
Thnx mdotstrange  :),

found a solution myself:

make two sliders, get their values and feed them into global floats. Then animated the seperate parts on the GO myself (morphkeys and transform included). then linked everything to the values. So it is posible to play animations on the same mesh with seperate sliders and even add/blend them.