change layer visibility

Hi there,

I am trying to change the visibility of an object to appear and disappear on specific keyframes

What is the best way to do this?

When I go to the Properties window under object and change the objects layer I can move the object to a different layer but if I try to insert a keyframe Blender gets me the error layers cannot be animated.

This is a ball that is a parent to a claw arm.

Please advise/let me know what other options I have to hide this ball on specific keyframes and then reappear.

Keyframe an objects visibility and/or renderability in the outliner window. Hover your mouse over the eye/camera icon and press I or RMB/Insert keyframe which will keyframe the current state

When I go to the Properties window under object and change the objects layer I can move the object to a different layer but if I try to insert a keyframe Blender gets me the error layers cannot be animated.
You cannot keyframe layer changes