When setting key-frames to an object’s Visibility or “restrict view-port visibility” property,
Its easy to forget that it doesn’t affect the visibility in rendering but only in the view-port display.
This gave me some really nasty glitches in production when rendered animation turned out different than what I had expected.
Simple solution to that is:
Whenever an object’s visibility needs to be animated,
First thing to do is to set a Driver for the “restrict rendering” property, that would be controlled by the “restrict view-port visibility” property.
That way the animation done on view-port visibility will automatically also control rendering visibility.
What’s needed is a simple single property driver which is very simple to setup and the huge headaches can be avoided that way.
There are plenty of video tutorials about setting up drivers in Blender: