Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Blend shape and bone driven animation simultaneously.

Discussion in 'Animation' started by cristo, Apr 18, 2017.

  1. cristo

    cristo

    Joined:
    Dec 31, 2013
    Posts:
    265
    Hi, I realise that I need to call a blendshape animation and a bone driven animation at the same time. I see there are a few links to calling two bone driven animations simultaneously, but I couldn't find something specific for my problem. Any feedback would be rad. i may have to go back to my model and bake more animation combinations, but if there's another way, I might as well check.
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,001
    Are you using the animator?

    I haven't tried it recently, but it should work : Create another animation layer and set it as additive. So you would have your bone animations in the base layer and the blendshapes in the additive.

    More info here : https://docs.unity3d.com/Manual/AnimationLayers.html
     
    cristo likes this.
  3. TrickyHandz

    TrickyHandz

    Joined:
    Jul 23, 2010
    Posts:
    196
    As @AcidArrow pointed out, you can have the BlendShapes in another layer. Depending on what kind of effect you are going for, I tend to use override layers for blendshape animations and an "empty" avatar mask to ensure that no bones accidentally get animated by the layer.

    Cheers,
    TrickyHandz
     
    AcidArrow and cristo like this.
  4. cristo

    cristo

    Joined:
    Dec 31, 2013
    Posts:
    265
    Thanks for the feedback. I'll give it a try.
     
  5. UncleRedGames

    UncleRedGames

    Joined:
    Apr 14, 2015
    Posts:
    2
    I want to animate the blend shapes in the Skinned Mesh Renderer directly from script, but wasn't able to because the blend shapes and bones were both driven simultaneously by one animation as stated by the OP.

    The solution is to copy the bone animations file(s) from the characters model to another map (to avoid read only problems). Next modify the bone animation directly with Unity Animation Tool (ctrl+6) by deleting the Skinned Mesh Renderer Blend Shapes properties. That way you'll be able to run both without the use of the animation window and layers. I'm sure there are better ways, but this how i accomplish exactly what i want.

    Have a good one!
     
    Xoduz and cristo like this.
  6. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    FBX supports animating blendshape parameters as well.
     
    cristo likes this.