# How can I animate the Restrict Visibility property of an object?

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?

• 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 '14 at 3:20

## Restrict Rendering

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

## 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:

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

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

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

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:

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

• 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 '14 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 '14 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 '14 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 '14 at 23:02
• I propose to cut out the part about "How To Render & View Your Animation" into a new question/answer and then merge my q/a blender.stackexchange.com/questions/16009/… into here. That would make this q/a complete and less noisy as well :) – Gaia Clary Sep 20 '14 at 10:06

Simple problem, you are animating only the Viewport Visibility.
In the Outliner, Keyframe the "Render Visibility" (camera icon).

That image shows an object in the outliner. The three buttons on the right edge are, in order from left to right, Viewport Visibility, Viewport Selection and Render Visibility.

• 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 '14 at 22:56