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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unable to make this very easy animation!!

Discussion in 'Animation' started by halit23, Sep 19, 2018.

  1. halit23

    halit23

    Joined:
    Apr 12, 2018
    Posts:
    13
    Hi guys! i want to divide this animation to single steps, like unplugging every single part alone, looping then move "next" or "back" to next or previous part but i am just unable to do that with character-like animation methods.

    i know theoretically this is supposed to be very easy but when i divided animations and connect them with transitions every step get back to where it starts just before transition to next animation and the 2nd animation.

    The model was made in 3dsmax and exported with single animation divided evenly (4 frames for each unplug, 4 frames in-between)

    555.gif
     
  2. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    I guess you are using a animator controller in which case you are probably fighting with the write default values.
    Try to simply uncheck Write Defaults on all your state.

    Here some details why
    An animation clip can have multiple animation curve, like an animation curve to move the front panel from position A to B or another one to move the screw from position B to C.

    When you split your animation into multiple animation clip you can end up with
    AnimationClip A -> animating front panel from position A to B
    AnimationClip B -> animating screw from position B to C

    when you create a transition from AnimationClip A to AnimationClip B the animation system blend both clip togheter, if the next clip(AnimationClip B) doesn't have an animation curve for the front panel there is two options for you: either you blend with the default values or you keep the current value from the previous clip(AnimationClip A).
     
    halit23 likes this.
  3. halit23

    halit23

    Joined:
    Apr 12, 2018
    Posts:
    13
    Untitled-1.jpg Thank you so much for your reply it helped me so much. Here is what I've done after reading your post, and it worked but i get a problem at the first step, not when i start the animation but only when i turn back to initial state from using the PREVİOUS transition

    I've got four rows which each one presents a step. Each row or line has two copies of same animation, one for next transition and other for previous. At first all animations on left were Write Default disabled and the ones right were enabled but that didn't give me the result i want but i when i changed only the right top and right bottom to Write Default enabled it worked. In this 4 step rows all the transitions work perfectly only when i get back to initial state. or when i go previous from last step.

    And when i moved further to 6 steps things gone perfect if i use the next transition only. And when i use previous it goes OK until 4th step.

    Can you please check the file if i upload somewhere and post the link here? because there too many settings that i cant write or explain here. it is really complex :/
     
  4. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    I can take a look, send me a private msg with your link if you don't want to share it on the forum