Take the 2-minute tour ×
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It's 100% free, no registration required.

I've been trying to create an animation where an object blinks on and off.

For example, I have a Cube and I set a keyframe on it's Restrict Visibility icon (the "eye" icon) with I, then I toggle off that "eye" so my cube doesn't show in the Viewport and again I press I to record that keyframe. Then, when I preview the animation in the Viewport, I see my cube appears and then disappears like I want, but when I render it, the cube does not disappear at all.

What am I doing wrong?

share|improve this question
    
If one of these answers solved your problem, don't forget to click the "Solved" checkmark next to it to let everyone know the question has been solved. :) –  Thom Blair III Apr 18 at 3:20

2 Answers 2

Restrict Rendering

The feature you need to animate is the Restrict Render icon: enter image description here, not the Restrict Visibility icon: enter image description here. Restrict Visibility only effects whether the object can be seen in the 3D Viewport -- it does not effect rendering at all.

enter image description here

How To Render & View Your Animation

  1. Before you render your animation, first you should specify where you want the rendered animation to be saved and also the file name. To do this:

    enter image description here

  2. Next, scroll down to the Encoding section and select an appropriate encoding format. Here, I'm selecting the MPEG4 format

    enter image description here

  3. Now go up and click on the Render Animation button:

    enter image description here

  4. Now on your computer, go to the place where you saved your file and view it with a video file player:

    enter image description here

If you want to play your rendered animation directly in Blender, you can use:
Info -> Render -> Play Rendered Animation (CTRLF11)

NOTE: The "Play" buttons shown under the Render Result window will NOT play your rendered animation -- they are only for previewing your animation before rendering it:

enter image description here

You can read more about the different features of the Outliner window here and more about the Rendering Process here in the Blender Manual.

share|improve this answer
    
Thanks for answer, you were correct now when I press render it renders perfectly but I have one more problem. When I try to export this and import in Unity 3d animation doesnt work cube is shown but doesnt disappear ? –  ivan Apr 17 at 22:52
    
You should ask this in a new question. And I'm sorry, but I've never used Unity before, but lots of people around here have. Good luck! –  Thom Blair III Apr 17 at 22:58
    
thanks for replay. One more thing when I run animation in Blender then Render Resault screen appears, when I press play button animation doesnt work cube is always shown. In process during this rendering it was clearly that cube wasnt rendered at specific keyframe. –  ivan Apr 17 at 23:01
    
I up voted you answer, because you beat me to it by about 20 seconds. Yes I knew about the code styling, but have not used it in a <kbd> element yet. –  David Apr 17 at 23:02
    
@Ivan I'll update my answer to show you how to view your rendered result. –  Thom Blair III Apr 17 at 23:12

Simple problem, you are animating the view port visibility. Keyframe the camera icon next to the eye that you key framed.

share|improve this answer
    
Hey David, did you know that if you want the uppercase letter I to be distinguishable from the lowercase L, then you can/should enclose it in ` like this: <kbd>` I `</kbd> except without the spaces...try it, I just discovered this the other day. :) –  Thom Blair III Apr 17 at 22:56
    
@Polosson You are right. See this blender.stackexchange.com/a/1068/2217 I guess I have not tried that in a while. –  David Apr 17 at 23:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.