0
$\begingroup$

Is it possible to show and hide an object on different animation strips? I have an Attack strip for my character where he's holding a gun. However, I don't want this object to show in his idle, jump and walk animations. I've tried keyframing the Restrict Viewport Visibility for the gun object, but I can't get this method to work throughout the different strips; only the one. I saw a video where you can keyframe the layers, but when I tried it, it didn't work. It says the layers property can't be animated. :-\

enter image description here

enter image description here

As you can see, the Attack Action has the character with his gun, but in the Idle Action, he's holding it as well. How could I remove it from the other animation strips? I did try just having a separate save with only the Attack animation, but that's a problem and not very practical when importing into Unity. Because otherwise I'll have one model with the other three animations, and one with just the one. It's a bit of a pain having to switch between two models.

$\endgroup$
  • $\begingroup$ Can anyone help? Is it possible? $\endgroup$ – DustyShinigami Apr 30 '19 at 8:04
  • $\begingroup$ What about Keyframing the material for the Gun so it can be Transparent? $\endgroup$ – rob Apr 30 '19 at 10:59
  • $\begingroup$ Could try that. I guess that would need to be keyframed via the Node Editor? Apart from that, is there no other way? Thanks. $\endgroup$ – DustyShinigami Apr 30 '19 at 11:49
  • 1
    $\begingroup$ I don’t think that will work for me though as I import my character and animations into Unity, so I think it’ll still show. This is where I wish I could still keyframe selected/unselected layers. $\endgroup$ – DustyShinigami Apr 30 '19 at 11:56
  • 1
    $\begingroup$ @DustyShinigami I've used rob 's method frequently in another animator and of course Blender and it works fine. If the weapon is parented to the hand or whatever, you'd have to keep it miles away and out of sight. It's relative position to the hand can always be re-keyframed if it can be seen later along the timeline. It's a workaround obviously but as you're getting a little desperate... $\endgroup$ – Edgel3D May 1 '19 at 2:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.